Jackie,
So cem() won't work quite like that. It will only match categories
with each other not the kind of bins you are talking about ( where 1
can match 3 and 3 can match 4, but 4 can't match 1). That being said
you can do a couple of things:
Option1: Just match within strict bins
Option2: Implement the matching yourself (particularly if you don't
have too many variables this won't be very hard)
Option3: Trick cem into doing what you want. How would you do that?
Well lets make the problem a little simpler. Let's say you have 3
categories. 1 can be matched to 1,2; 2 can be matched to any; 3 can
be matched to 2,3. Basically you replicate all the observations
(giving each a unique number) and code them as every category they
could be in. Then run cem matching exactly on the categories.
Finally go back and remove any remaining duplicates (making sure not
to let any strata be empty and adjusting the weights!). You'd have to
be extremely careful not to leave any duplicate observations
remaining.
I think these are in increasing order of difficulty...
Brandon
On Tue, Apr 26, 2011 at 2:41 PM, Gary King <king(a)harvard.edu> wrote:
I think the only package that will do this is cem().
not cem within
matchit. (its not that well tested, but it should work if you recode the
continuous treatment into categories first)
Gary
--
Gary King - Albert J. Weatherhead III University Professor - Director, IQSS
- Harvard University
GKing.Harvard.edu - King(a)Harvard.edu - @kinggary - 617-500-7570 - Asst
495-9271 - Fax 812-8581
On Tue, Apr 26, 2011 at 2:35 PM, Jackelyn Hwang <jihwang(a)fas.harvard.edu>
wrote:
Hi class,
Our group is trying to do matching with a continuous treatment variable.
We've tried to use MatchIt with cem and cem() itself but have failed to get
matches. We've also tried to coarsen the treatment into categories, but the
methods are still not working. We would ideally like to match groups that
are at least two category levels apart out of 4 categories (i.e., 1 and 3; 2
and 4). If anyone knows anything about multicategory treatments for cem,
which the documentation says it can do, please email me!
Thanks,
Jackie
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
--
gov2001 mailing list served by Harvard-MIT Data Center
List Address: gov2001(a)lists.gking.harvard.edu
Subscribe/Unsubscribe:
http://lists.gking.harvard.edu/?info=gov2001