Hi,
I'm very sorry to post again. I forgot to mention that there is another
error which may be part of the same problem?
After I run matchit, I run summary(m.outf) and it gives me an error message
as well:
m.outf <- matchit(Tr ~ X, data = lk12_rdmatchAC_range20, method = "genetic",
ratio = 2, replace = TRUE, pop.size=1000, discard = "control")
summary(m.outf)
Error in `row.names<-.data.frame`(`*tmp*`, value = c("distance",
"Xage", :
duplicate 'row.names' are not allowed
In addition: Warning message:
non-unique value when setting 'row.names': ‘X.1’
When I next run
plot(m.outf)
there is no problem--I get qq plots that look reasonable.
And of course when I run zelig I get the same problem as before:
z.out1 <- zelig(Y1 ~ Tr + X + gk_score, model = "ls", data =
match.data(m.outf, "control"))
Error in `[.data.frame`(d, , all.vars(as.expression(formula))) :
undefined columns selected
Any advice would be most appreciated!
Thanks!
Show replies by date