I've been trying to figure this out for a little while. When I try to
estimate my model in Zelig, I get:
model <- zelig(immpol ~ LABOR + IDEO + INCOME +
WHITE + BLACK +
ASIAN + HISP + EDUC + AGE + SEX + secon + pecon + jobhard +
UNEMPLOY
+ ifriend + iarea, model="ls", data=pew)
Error in data.frame(RESP = c(1, 6, 7, 8, 9, 10, 11, 12, 13, 15, 17,
18, :
arguments imply differing number of rows: 6003, 0
Even though:
length(pew$immpol); length(pew$LABOR);
length(pew$IDEO); length(pew
$INCOME); length(pew$WHITE); length(pew$BLACK);
length(pew$ASIAN);
length(pew$HISP); length(pew$EDUC); length(pew$AGE); length(pew$SEX);
length(pew$secon); length(pew$pecon); length(pew$jobhard); length(pew
$UNEMPLOY); length(pew$ifriend); length(pew$iarea)
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
[1] 6003
Does anyone have a theory as to what could be going on here?
Thanks,
Keith