Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sim fails to handle missing values #53

Open
izahn opened this issue Mar 23, 2013 · 1 comment
Open

sim fails to handle missing values #53

izahn opened this issue Mar 23, 2013 · 1 comment

Comments

@izahn
Copy link

izahn commented Mar 23, 2013

Missing values cause sim to produce no output

library(Zelig)
data(turnout)
tmp <- turnout
z.out <- zelig(educate ~ race + vote, model = "ls", data = tmp)
x.out <- setx(z.out)
s.out <- sim(z.out, x=x.out)
summary(s.out) #works

tmp[1, "vote"] <- NA
z.out <- zelig(educate ~ race + vote, model = "ls", data = tmp)
x.out <- setx(z.out)
s.out <- sim(z.out, x=x.out) 
summary(s.out) # fails to produce output
@SolomonMg
Copy link

The problem is actually in setx()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants