Hi All,
I think I'm having an issue either with setx() or sim()--not sure which
one. The zelig() command runs fine and summary(z.out) output has the
correct results--the same I get from lm(). Setx() and Sim() also both run
without a problem, but summary(s.out) prints without any actual results and
when I try to plot(s.out) I get an error saying there are no y values. The
output and my code are below. I feel like I'm missing something pretty
obvious here, but am about out of ideas. Thanks in advance for any help!
Cheers,
Laura
masculinityscorewhole<-zelig(qual~masculinityscore+female+age+education+black+latino+republican+working+homemaker+partnered+kids+homemaker*kids+partnered*kids+polinterest+vote12b,
weights=cces3$postweight, model="normal", data=cces3)
x.high<- setx(masculinityscorewhole, female=1)
x.low <- setx(masculinityscorewhole, female=0)
exp.out2<- sim(masculinityscorewhole, x = x.low, x1 = x.high)
summary(exp.out2)
Model: normal
Number of simulations: 1000
Values of X
(Intercept) masculinityscore female age education black latino
republican working homemaker partnered kids polinterest
vote12b homemaker:kids partnered:kids
attr(,"assign")
[1] 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Values of X1
(Intercept) masculinityscore female age education black latino
republican working homemaker partnered kids polinterest
vote12b homemaker:kids partnered:kids
attr(,"assign")
[1] 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15