{"id":601,"date":"2011-02-25T11:56:02","date_gmt":"2011-02-25T16:56:02","guid":{"rendered":"https:\/\/cyrussamii.com\/?p=601"},"modified":"2011-02-25T11:56:02","modified_gmt":"2011-02-25T16:56:02","slug":"matching-with-multilevel-data-discussing-some-strategies","status":"publish","type":"post","link":"https:\/\/cyrussamii.com\/?p=601","title":{"rendered":"matching with multilevel data, discussing some strategies"},"content":{"rendered":"<p>Nyasha, a PhD candidate from the Netherlands, writes,<\/p>\n<blockquote><p>I am evaluating a food aid program for HIV\/AIDS afflicted families and individuals in Zambia. This is the data I have:<\/p>\n<ol>\n<li>4 zones were selected in an urban area. This purposive selection was based on HIV prevalence data, these 4 zones appear to have slightly higher rates than others .<\/li>\n<li>Proxy means testing was then used to select households in these 4 zones. The selection criteria was based on a combination of household and individual characteristics.<\/li>\n<li>I have data from 200 \u201ctreated \u201c households from the 4 selected zones and data from 200  similar \u201c control\u201d households from 4 zones that were not selected.<\/li>\n<li>Within these households, I am interested in assessing outcomes at individual level.  I have personal medical data for HIV patients (300 observations), household consumption data (400 observations) and personal labour supply data for everyone in each household (1935 observations). First chapter of my thesis looks at patient level data, second chapter looks at household consumption data and the last one looks at individual labour supply data.<\/li>\n<\/ol>\n<p>A few questions:<\/p>\n<ul>\n<li>How I can proceed with creating propensity scores. I would like analyse the program\u2019s impact on both household level outcomes and individual level outcomes. Do I use a propensity score model defined at household level  when I am assessing individual outcomes?  Is it justified to use three different propensity score models for each level of analysis?<\/li>\n<li>How do I incorporate the geographical selection in the matching?  When I include the zone dummies in the logit model (psmatch2), I have a  separation problem, with 6 of the  dummies being dropped from the model. Should I continue to use this logit model? Or should I completely drop the zone dummies?<\/li>\n<li>What do I do with HIV rate. The difference is there between selected zones and non-selected zones. However HIV rates  do not appear to be correlated with any of my outcomes. I was thinking of using it as an instrument in IV regressions? Is it a justifiable instrument, especially when the variable is only available for 8 cluster zones? My preliminary diagnostic tests show its a valid instrument.<\/li>\n<li>Can I also include the HIV rate variable as a cluster\/geographic level covariate in PSM? Or do I exclude it as it appears more to be an instrument?<\/li>\n<\/ul>\n<\/blockquote>\n<p>Some of the questions are probably best posed to someone working in<br \/>\nyour discipline.  But let me respond to the general question about<br \/>\nmatching on multilevel data.  From what I understand, your treated and<br \/>\ncontrol individuals are from different communities. Whether or not this is<br \/>\nthe case, there are different ways to do the matching with multilevel<br \/>\ndata:<\/p>\n<p>One way is to first use community level data to match communities that<br \/>\ninclude treated people with communities that didn&#8217;t.  Then, across<br \/>\neach of the matched pairs or matched sets, find individual level<br \/>\nmatches for each of the treated individuals by drawing controls only<br \/>\nfrom the matched community.  That would be a two-stage matching<br \/>\napproach, and it makes sense if you think that community level factors<br \/>\nare really important.<\/p>\n<p>Another way is to simply load in the community level variables along<br \/>\nwith the individual level variables and match on everything at the<br \/>\nsame time.  It makes sense<br \/>\nwhen you think that community level variables are no more or less<br \/>\nimportant than individual level variables.<\/p>\n<p>In practice, the two approaches may generate nearly identical solutions.  But such may not be the case for you, in<br \/>\nwhich case you need to decide whether you think the community level<br \/>\nvariables are of paramount importance or not.<\/p>\n<p>The matching can be done with pscores, coarsened exact matching,<br \/>\nnearest neighbor, genetic matching or something<br \/>\nelse&#8212;whatever you like.  There are benefits and downsides to each.  I have used genetic matching because in theory<br \/>\nit obtains the best outcome that either pscores or mahalanobis<br \/>\ndistance nearest neighbor matching can obtain. I have also used coarsened exact matching because of its transparency and ease of interpretation.  Another alternative would be to use a generalized weighting algorithm, but I don&#8217;t think there is readily available software for it yet (although some of Jens Hainmueller&#8217;s current work seems to be promising).<\/p>\n<p>On some of your other question: the separation problem with the zone<br \/>\ndummies seems to be due to the fact that some zones had no treated or<br \/>\nno controls.  If there are some zones that have both, you might<br \/>\nrestrict your analysis to those zones.  You might then do another<br \/>\nanalysis that then adds in matched data created according to the first<br \/>\noption above.<\/p>\n<p>Indeed, if you think something has the properties of an instrument,<br \/>\nthen you do not want to include it in the matching algorithm.  That<br \/>\ncan result in bias.<\/p>\n<p>Nyasha followed up,<\/p>\n<blockquote><p> Another question I have is this- four zones or communities in my data only have treated only. The other four only have controls. That is why I think I am encountering the separation problem when I add community dummies into the logit equation.<\/p><\/blockquote>\n<p>Most certainly that will create such problems.<\/p>\n<blockquote><p>I have few other community observed characteristics which I<br \/>\nhave included already, but how best do I then control for unobserved effects<br \/>\n(especially endogenous program placement) at community level, if I cannot<br \/>\ninclude the community dummies in the propensity score model?<\/p><\/blockquote>\n<p>Alas, you cannot.  You need to make an assumption that the measured<br \/>\ncovariates capture all of the relevant differences between the<br \/>\ncommunities, and then match using these measured covariates.<\/p>\n<blockquote><p> Should I also carry out further regression analysis on the matched sample, where I then include the community dummies (as fixed effects)?<\/p><\/blockquote>\n<p>You will not be able to do this because of perfect collinearity with<br \/>\nthe treatment indicators.  There is really no way to account for<br \/>\nunmeasured community level factors.  The best you can do is use the<br \/>\nmeasured information to match, and you can also include these<br \/>\ncommunity level covariates whatever regressions you use.  Then,<br \/>\nperhaps you can conduct a sensitivity analysis.<\/p>\n<blockquote><p>Or should I also look into using an IV with community fixed effects? Would this work for cross section data?<\/p><\/blockquote>\n<p>Again, you won&#8217;t be able to do it because the community fixed effects<br \/>\nwill be perfectly collinear with the treatment indicator, so a second<br \/>\nstage regression with community fixed effects would not be identified.<\/p>\n<p>Did I miss something here?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nyasha, a PhD candidate from the Netherlands, writes, I am evaluating a food aid program for HIV\/AIDS afflicted families and individuals in Zambia. This is the data I have: 4 zones were selected in an urban area. This purposive selection was based on HIV prevalence data, these 4 zones appear to have slightly higher rates &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/cyrussamii.com\/?p=601\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;matching with multilevel data, discussing some strategies&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-601","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/cyrussamii.com\/index.php?rest_route=\/wp\/v2\/posts\/601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyrussamii.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cyrussamii.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cyrussamii.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cyrussamii.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=601"}],"version-history":[{"count":11,"href":"https:\/\/cyrussamii.com\/index.php?rest_route=\/wp\/v2\/posts\/601\/revisions"}],"predecessor-version":[{"id":612,"href":"https:\/\/cyrussamii.com\/index.php?rest_route=\/wp\/v2\/posts\/601\/revisions\/612"}],"wp:attachment":[{"href":"https:\/\/cyrussamii.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cyrussamii.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cyrussamii.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}