Ok, here is my question. I have a data frame that looks like this:
y x1 x2 (say, age) x3
yes car 23 catholic
no bus 34 muslim
maybe bus 16 jew
You see, the multinomial dependent variable is y, but I also have
multi-factors in the right side of the equation.
I want to use mlogit, but it seems to me that my database isn't like the
examples in the package's vignette. Say my dataframe is "new". I
don't know
if it's just:
new1<-mlogit.data(new, choice="y", shape="long",
alt.levels=c("yes", "no",
"maybe"))
Or should I also input levels for x1 and x3?
Any help would be appreciated.
Thanks a lot
Obrigado / Thanks for your time and attention.
Claudio D. Shikida
http://www.cdshikida.net and http://works.bepress.com/claudio_shikida/
Esta mensagem pode conter informa??o confidencial e/ou privilegiada. Se
voc? n?o for o destinat?rio ou a pessoa autorizada a receber esta mensagem,
n?o poder? usar, copiar ou divulgar as informa??es nela contidas ou tomar
qualquer a??o baseada nessas informa??es. Se voc? recebeu esta mensagem por
engano, por favor avise imediatamente o remetente, respondendo o presente
e-mail e apague-o em seguida.
This message may contain confidential and/or privileged ...{{dropped:9}}