Hi Keith,
You need to remove the quotation you have around the data frame. Instead
of
data = "m1sample"
use
data = m1sample
Kosuke
---------------------------------------------------------
Kosuke Imai Office: Corwin Hall 041
Assistant Professor Phone: 609-258-6601
Department of Politics eFax: 973-556-1929
Princeton University Email: kimai(a)Princeton.Edu
Princeton, NJ 08544-1012
http://imai.princeton.edu/
---------------------------------------------------------
On Tue, 25 Mar 2008, Keith Schnakenberg wrote:
I am trying to use zelig to estimate models for
various subsets of my data.
The relevant code is below:
library(foreign)
ssrl <- read.spss("ayerscleaned2.sav", to.data.frame=TRUE)
library(Zelig)
m1sample=ssrl[ssrl$HFOR==1,]
m1 <- zelig(ENGLISH ~ TIME + PCTH2 + CONTACT + SEND + VISIT2 + LIVED +
MEXICAN + MALE + EDU + INCOME + AGE, model="logit", data="m1sample")
When I try to run the last command, I get the following error message:
Error in eval(predvars, data, env) : invalid 'envir' argument
I get the same error message for all other subsets and for the data with no
subsets.
Could anyone shed some light on what might be the cause of this error?
Thank you,
Keith Schnakenberg
-
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/
-
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/