I'm trying to use matchit to preprocess some data. File DUI90 is 470
cases by 8 variables. Some of those variables have missing data. I
tried to use MatchIt on a subset of the variables and got the following:
drug.out <- matchit (newgroup ~ Age + Sex + Race +
Priors, data =
DUI90)
Error in matchit(newgroup ~ Age + Sex + Race + Priors, data = DUI90) :
Missing values exist in the data
But, in fact, they don't, at least for the variables in the model
itself. Does MatchIt have an aversion for missing data in any part of
a data set? It looks that way, but this isn't mentioned in the
documentation. I can see why there might be a no NA restriction for
the model variables, but it seems like the other fields could be
carried along for the ride when they have missing values. It's easy to
fill in the blanks, but tiresome.
I'm using R 2.8.0 on MacOSX 10.5.6 on a Macbook Pro. MatchIt is v.
2.4-10. I see that this was built on R 2.8.1, but I doubt that is the
source of such an elementary problem. Any help is appreciated.
Tracy
Tracy Lightcap
Professor and Chair
Department of Political Science
LaGrange College
601 Broad St.
LaGrange GA 30240-2999
(O) tlightcap(a)lagrange.edu (H) altlamp(a)mindspring.com
706.880.8226
www.lagrange.edu/academics/political-science/faculty/tlightcap.aspx
-
Zelig Mailing List, served by Harvard-MIT Data Center
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options:
http://lists.gking.harvard.edu/?info=zelig
Zelig program information:
http://gking.harvard.edu/zelig/