Hey all,
I get this error when I run setx: "Error in dta[complete.cases(mf),
names(dta) %in% vars, drop = FALSE] : incorrect number of dimensions"
I found some people with the same problem on internet - but apparently no
one has worked it out.
Does anyone know how to solve it?
My output is bellow the message.
Thanks,
Rogério Barbosa
z.out = zelig(t1 ~ age + age2 + gender + race.white,
model = "logit",
data = pad)
How to cite this model in Zelig:
Kosuke Imai, Gary King, and Oliva Lau. 2008. "logit: Logistic Regression
for Dichotomous Dependent Variables" in Kosuke Imai, Gary King, and Olivia
Lau, "Zelig: Everyone's Statistical Software,"
http://gking.harvard.edu/zelig
age.sim=6:19
age2.sim=age.sim^2
x.out <- setx(z.out, age=age.sim, age2=age2.sim,
gender=0, race.white=1)
*Error in dta[complete.cases(mf), names(dta) %in% vars, drop
= FALSE] : *
* incorrect number of dimensions*
Rogério J. Barbosa
Researcher at Centre for Metropolitan Studies/Cebrap
São Paulo - Brazil