Hi- I think you found a bug in the relogit model, but this issue requires a little more
analysis. I opened at ticket on GitHub here:
I am having trouble using relogit when the response is
a two column matrix
(first column for #successes and the second for #failures).
When i try:
z.out <- zelig(cbind(suc, nosuc) ~ loc, model="logit", data=myData)
it works but when i try
z.out <- zelig(cbind(suc, nosuc) ~ loc, model="relogit", data=myData),
I get the error "Error in eval(expr, envir, enclos) :
for the binomial family, y must be a vector of 0 and 1'
or a 2 column matrix where col 1 is no. successes and col 2 is no. failures"
(myData is:
loc suc nosuc
0 0.0000000 5 493064
1 0.6931472 2 68832
2 1.0986123 0 5741
3 1.3862944 0 609
)
Is relogit not working with this format or am I doing something wrong?
-
--
Zelig Mailing List, served by HUIT
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options:
http://lists.gking.harvard.edu/mailman/listinfo/zelig
Zelig program information:
http://gking.harvard.edu/zelig/
Zelig mailing list
Zelig(a)lists.gking.harvard.edu
https://lists.gking.harvard.edu/mailman/listinfo/zelig