Skip to content

Commit

Permalink
update lab
Browse files Browse the repository at this point in the history
  • Loading branch information
lecy committed May 1, 2020
1 parent e32bb75 commit 18763b0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 29 deletions.
55 changes: 28 additions & 27 deletions labs/matching-lab.html
Original file line number Diff line number Diff line change
Expand Up @@ -3096,11 +3096,11 @@ <h3>Q1:</h3>
<tr class="even">
<td align="center">fiction</td>
<td align="center">0.58</td>
<td align="center">0.58</td>
<td align="center">0</td>
<td align="center">1</td>
<td align="center">-0.33</td>
<td align="center">0.33</td>
<td align="center">0.53</td>
<td align="center">0.05</td>
<td align="center">0.75232</td>
<td align="center">-0.39</td>
<td align="center">0.28</td>
</tr>
<tr class="odd">
<td align="center">scifi</td>
Expand All @@ -3114,11 +3114,11 @@ <h3>Q1:</h3>
<tr class="even">
<td align="center">children</td>
<td align="center">0</td>
<td align="center">0.11</td>
<td align="center">-0.11</td>
<td align="center">0.16283</td>
<td align="center">-0.05</td>
<td align="center">0.26</td>
<td align="center">0.16</td>
<td align="center">-0.16</td>
<td align="center">0.08276</td>
<td align="center">-0.02</td>
<td align="center">0.34</td>
</tr>
<tr class="odd">
<td align="center">male</td>
Expand All @@ -3132,29 +3132,29 @@ <h3>Q1:</h3>
<tr class="even">
<td align="center">age</td>
<td align="center">26.63</td>
<td align="center">31.11</td>
<td align="center">-4.48</td>
<td align="center">0.00347</td>
<td align="center">1.58</td>
<td align="center">7.37</td>
<td align="center">32.42</td>
<td align="center">-5.79</td>
<td align="center">0.01126</td>
<td align="center">1.43</td>
<td align="center">10.15</td>
</tr>
<tr class="odd">
<td align="center">white</td>
<td align="center">0.68</td>
<td align="center">0.47</td>
<td align="center">0.21</td>
<td align="center">0.19877</td>
<td align="center">-0.54</td>
<td align="center">0.12</td>
<td align="center">0.42</td>
<td align="center">0.26</td>
<td align="center">0.1084</td>
<td align="center">-0.59</td>
<td align="center">0.06</td>
</tr>
<tr class="even">
<td align="center">black</td>
<td align="center">0.05</td>
<td align="center">0.42</td>
<td align="center">-0.37</td>
<td align="center">0.00794</td>
<td align="center">0.11</td>
<td align="center">0.63</td>
<td align="center">0.47</td>
<td align="center">-0.42</td>
<td align="center">0.00317</td>
<td align="center">0.16</td>
<td align="center">0.69</td>
</tr>
<tr class="odd">
<td align="center">asian</td>
Expand All @@ -3180,8 +3180,9 @@ <h3>Q1:</h3>
<div id="q2-2" class="section level3">
<h3>Q2</h3>
<p>In the printout above of sample statistics it reports that 13 cases in the control group were unmatched at the end. The <strong>discard=</strong> argument allows he program to drop observations prior to matching. This is helpful when some cases fall outside of the region of common support.</p>
<p>How does relaxing this contraint change the final sample size?</p>
<p>Does it generate more or less balance than the defaul method reported in Q1? Is this consistent with Q1d in Part 2?</p>
<p><strong>Q2a:</strong> How does relaxing this contraint change the final sample size?</p>
<p><strong>Q2b:</strong> Does it generate more or less balance than the defaul method reported in Q1? Is this consistent with Q1d in Part 2?</p>
<p><strong>Q2c:</strong> How is discarding cases without support similar to the simple nearest neighbors approach in Part 1? How much do the samples you identified with this approach and from Step 1 overlap?</p>
<div class="sourceCode" id="cb14"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb14-1" title="1">m.out &lt;-<span class="st"> </span><span class="kw">matchit</span>( books <span class="op">~</span><span class="st"> </span>movies <span class="op">+</span><span class="st"> </span>fiction <span class="op">+</span><span class="st"> </span>scifi <span class="op">+</span><span class="st"> </span>children <span class="op">+</span><span class="st"> </span></a>
<a class="sourceLine" id="cb14-2" title="2"><span class="st"> </span>male <span class="op">+</span><span class="st"> </span>age <span class="op">+</span><span class="st"> </span>white <span class="op">+</span><span class="st"> </span>black <span class="op">+</span><span class="st"> </span>asian, <span class="dt">data=</span>dat,</a>
<a class="sourceLine" id="cb14-3" title="3"> <span class="dt">discard=</span><span class="st">&quot;both&quot;</span> )</a>
Expand Down
5 changes: 3 additions & 2 deletions labs/matching-lab.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,11 @@ compare_means( df=d.matched ) %>% pander()

In the printout above of sample statistics it reports that 13 cases in the control group were unmatched at the end. The **discard=** argument allows he program to drop observations prior to matching. This is helpful when some cases fall outside of the region of common support.

How does relaxing this contraint change the final sample size?
**Q2a:** How does relaxing this contraint change the final sample size?

Does it generate more or less balance than the defaul method reported in Q1? Is this consistent with Q1d in Part 2?
**Q2b:** Does it generate more or less balance than the defaul method reported in Q1? Is this consistent with Q1d in Part 2?

**Q2c:** How is discarding cases without support similar to the simple nearest neighbors approach in Part 1? How much do the samples you identified with this approach and from Step 1 overlap?


```{r, eval=F}
Expand Down

0 comments on commit 18763b0

Please sign in to comment.