Hi,

 

I am trying to generate a binary mixed logit model which contains only
individual specific data (no alternative specific data). Each observation is
contained within one line (data shape = "wide"). For example:

 

Individual ID       Dependent variable        Independent variable 1
......Independent variable x

1                                             1
0.2                                          ......        4.9

2                                             0
0.75                                        ......        4.2

3                                             0
0.8                                          ......        5.68

4                                             1
0.1                                          ......        1.57

5                                             0
0.14                                        ......        1.8

 

I have had no such luck in generating a model as yet, I am working through
error messages in the modelling command (after generating a formula
(mFormula) and setting the data (mlogit.data)). Is it possible to generate a
binary mixed logit model using the mlogit package, specifically the rpar
command? If so, does anyone have any tips on the best way to write in the
model (both mFormula, mlogit.data and mlogit commands)?

 

Thanks,

 

Michael


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to