Dear Eduardo,
Thanks for pointing this out, and sorry for the delayed response.
We're planning a release this week or next week that will include this
bug fix, in addition to a couple others.
Yours,
Olivia Lau
On Oct 7, 2007 6:06 AM, Eduardo Leoni <eleoni(a)hmdc.harvard.edu> wrote:
Hello again -
I found a problem in sim() when the model has a single independent variable.
data(sanction)
sanction$ncost <- factor(sanction$ncost, ordered = TRUE,
levels = c("net gain","little effect",
"modest loss", "major loss"))
z.out <- zelig(as.factor(cost) ~ mil, model = "oprobit", data = sanction)
x.low <- setx(z.out, mil = 0)
x.high <- setx(z.out, mil = 1)
s.out <- sim(z.out, x = x.low, x1 = x.high)
Error in matrix(factor(pr, labels = lev[1:length(lev) %in%
sort(unique(pr))], :
non-numeric matrix extent
(I replicated the error in the
vnc.hmdc.harvard.edu server)
best,
-eduardo
-
Zelig Mailing List, served by Harvard-MIT Data Center
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options:
http://lists.gking.harvard.edu/?info=zelig
Zelig program information:
http://gking.harvard.edu/zelig/
-
Zelig Mailing List, served by Harvard-MIT Data Center
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options:
http://lists.gking.harvard.edu/?info=zelig
Zelig program information:
http://gking.harvard.edu/zelig/