Hey all-
I posted the below onthe Zelig discussion board, but I think this
might also be related to MatchIt:
I just weighted some data, and am trying to examine the results with
ordered logit. The code is:
z.out <- zelig(as.factor(polact) ~ treat, weights="weights", data =
mi(ds1, ds2, ds3, ds4, ds5), model = "ologit")
This produces the error:
Error in model.frame.default(formula = as.factor(polact) ~ treat, data = list( :
variable lengths differ (found for '(weights)')
The same weighted model above runs fine in OLS, and I am running
MatchIt Version 2.4-10 (downloaded from Gary King's website).
Thoughts?
Thanks much,
-c
--
Casey A. Klofstad
University of Miami
Department of Political Science
Coral Gables, FL
klofstad(a)gmail.com
http://www.as.miami.edu/personal/cklofstad/
--
MatchIt mailing list served by Harvard-MIT Data Center
List Address: matchit(a)lists.gking.harvard.edu
Subscribe/Unsubscribe: http://lists.gking.harvard.edu/?info=matchit
MatchIt Software and Documentation: http://gking.harvard.edu/matchit/
Hey all-
I have some county-level exit poll data I am using with full matching.
But, since they are exit poll data, I also have to apply a weight to
correct for non-random sampling (this weight is based on county-level
turnout data on race, gender, age, vote share, etc...). Can I just
multiply the survey and matching weights together to get a summary
weight, or is it more complicated than this?
Thanks much,
-c
--
Casey A. Klofstad
University of Miami
Department of Political Science
Coral Gables, FL
klofstad(a)gmail.com
http://www.as.miami.edu/personal/cklofstad/
--
MatchIt mailing list served by Harvard-MIT Data Center
List Address: matchit(a)lists.gking.harvard.edu
Subscribe/Unsubscribe: http://lists.gking.harvard.edu/?info=matchit
MatchIt Software and Documentation: http://gking.harvard.edu/matchit/
Dear Listserve,
I have a question regarding maximum dataset size in MatchIt. I am trying to run
m.out<-matchit(Treated ~ X1 + X2 + X3 + X4 + X5, data = lucas, method = "optimal", distance = "mahalanobis", ratio=2)
but receive the following error message
Error in matrix(0, ncol = N0, nrow = n1) : too many elements specified
The
dataset is 10 columns wide and 466285 rows long. A big matrix, but I'm
dealing with landscape level issues, trying to determine deforestation impacts and control for physiographic covariates. Of the 466285 entries, 112239 are "treated".
I know this code works because when I run it on smaller datasets it goes no problem.
Can anyone tell me if there is a maximum matrix size using MatchIt, and if so, any potential workaround solutions to this issue?
Thanks so much for your help.
Cheers,
Lucas Joppa
* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Lucas N. Joppa
Duke University Program in Ecology
Nicholas School of the Environment
Durham, NC 27708
lnj(a)duke.edu
Office: LSRC A A322
Cell: 608.345.7085