This is pretty strange. I actually got the same error. am trying to force it
to name the setx output to voted98 - sandip
On 4/25/06, Ian Brett Yohai <yohai(a)fas.harvard.edu> wrote:
Hi Michael,
I just tried running your code - and it seemed to work with fine (with
x.p.phone having the appropriate variable names). Strange.
Best,
Ian
On Tue, 25 Apr 2006, Michael Law wrote:
Hi Everyone,
When I attempt 1e on the problem set using the method in the matchit
documentation, ie using the code:
phone.prop <- matchit(phone.contact ~ democrat*age*household*vote96,
data = phonedata, method = "nearest")
prop.zelig.1 <- zelig(voted98 ~ democrat + age + household + vote96,
model = "probit", data = match.data(phone.prop, "control"))
x.p.phone <- setx(prop.zelig.1,data=match.data(phone.prop, "treat"),
fn=NULL, cond=TRUE)
I get the following error on the last line:
Error in eval(expr, envir, enclos) : Object "voted98" not found
I know my dependent variable is in the original matched data. I do
notice that if I run names(x.p.phone) I get a column named
"cbind(voted98, 1 - voted98)" along with the covariates. I assume this
is causing my problem.
Any thoughts? Thanks!
Mike
_______________________________________________
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