IQSS / Zelig

A statistical framework that serves as a common interface to a large range of models

Home Page:http://zeligproject.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mlogit simulations and zelig_qi_to_df

lfggraca opened this issue · comments

Hi,
I am having some trouble extracting qi from a mlogit model. When I try to use the zelig_qi_to_df function it throws me an error "Error: $ operator not defined for this S4 class".
I am not quite sure how to deal with this.

Here goes a similar code with data(mexico)

data("mexico")
test <- zelig(as.factor(vote88) ~ pristr + age + school + female,
model = "mlogit", data= mexico,
verbose = FALSE)
female <- setx(test,female = 1)
male <- setx(test, female = 0)
test1 <- sim(test, x=female, x1=male)
summary(test1)
zelig_qi_to_df(test1)
head(test1)

Best

Hello, I am having the exact same problem and I would hugely appreciate if it could be fixed. Thanks!

Same. Also using mlogit.