Hello,
I have a quick question about an error message generated by MatchIt (this
question was already asked by a user in Feb 2005, but I couldn't find an
answer in the archives). I'm trying to run a propensity score model with
two subclasses. I tried this with my own data, as well as with the Lalonde
dataset used in the MatchIt tutorial. For some reason, the software returns
the following error:
Calculating propensity score...Done
Matching Treated:
10%...20%...30%...40%...50%...60%...70%...80%...90%...100%...Done
Calculating summary statistics...Done
Warning message:
the condition has length > 1 and only the first element will be used in: if
(subclass) {
When I try to run a summary report on the results, I receive this message:
Error in rep.default(data, length.out = vl) :
invalid number of copies in rep()
In addition: Warning messages:
1: no finite arguments to max; returning -Inf
2: NAs introduced by coercion
Your help would be much appreciated.
My best regards,
Bart Bonikowski
--
Bart Bonikowski
Graduate Student
Department of Sociology
Princeton University
Princeton, NJ 08544
T: (215) 325-1816
F: (609) 258-2180
-
MatchIt mailing list served by Harvard-MIT Data Center
List Address: matchit(a)latte.harvard.edu
Subscribe/Unsubscribe: http://lists.hmdc.harvard.edu/?info=matchit
MatchIt Software and Documentation: http://gking.harvard.edu/matchit/