Hi all,
I am now a university student and I am conducting the discrete choice analysis, yet, after I input the mixlogit syntax, it keeps showing "unrecognized command: mixlogit"...Please help me...
Basically, there are 6 attributes with 3, 2, 2, 2, 2, 2 levels...
In an experimental design, I have manipulated the following variables and created the stimuli:
Also, I coded all variables into dummy variables, but I am not too sure how to write the mixlogit syntax in STATA to run the analysis.
So, here is what I wrote for the syntax:
mixlogit choice const, group(obsid) id(personid) rand(Ap_Ap1 Ap_Ap2 Ap_Ap3 R_High H_Head E_Eyes M_Mouth G_Male) nrep(500)
I also tried:
mixlogit choice const, group(obsid) id(personid) rand(Ap_Ap1 Ap_Ap2 Ap_Ap3 R_High R_Low H_No H_Head E_No E_Eyes M_No M_Mouth G_Male G_Female) nrep(500)
However, it keeps showing "unrecognized command: mixlogit".
p.s. I am actually not sure whether I need to have "const" and "nrep(500)". I saw most of the examples include that, so I also write it in the syntax.
I aa very new to STATA, and I kept checking on different tutorial etc, but I still cannot solve it.
Can anyone see what my problem is? (I am really stuck at the moment. It will be very helpful if you can give me some suggestions!!!!)
Thanks
Joanne
I am now a university student and I am conducting the discrete choice analysis, yet, after I input the mixlogit syntax, it keeps showing "unrecognized command: mixlogit"...Please help me...
Basically, there are 6 attributes with 3, 2, 2, 2, 2, 2 levels...
In an experimental design, I have manipulated the following variables and created the stimuli:
- rating 2x (high vs low), - R_High, R_Low
- type of house3 x (different photos of apartments) - Ap_Ap1, Ap_Ap2, Ap_Ap3
- gender 2x (male vs female), - G_Male, G_Female
- head 2 x (show vs not show); - H_Head, H_No
- mouth 2x (show vs not show) - M_Mouth, M_No
- eyes 2x (show vs not show). - E_Eyes, E_No
Also, I coded all variables into dummy variables, but I am not too sure how to write the mixlogit syntax in STATA to run the analysis.
So, here is what I wrote for the syntax:
mixlogit choice const, group(obsid) id(personid) rand(Ap_Ap1 Ap_Ap2 Ap_Ap3 R_High H_Head E_Eyes M_Mouth G_Male) nrep(500)
I also tried:
mixlogit choice const, group(obsid) id(personid) rand(Ap_Ap1 Ap_Ap2 Ap_Ap3 R_High R_Low H_No H_Head E_No E_Eyes M_No M_Mouth G_Male G_Female) nrep(500)
However, it keeps showing "unrecognized command: mixlogit".
p.s. I am actually not sure whether I need to have "const" and "nrep(500)". I saw most of the examples include that, so I also write it in the syntax.
I aa very new to STATA, and I kept checking on different tutorial etc, but I still cannot solve it.
Can anyone see what my problem is? (I am really stuck at the moment. It will be very helpful if you can give me some suggestions!!!!)
Thanks
Joanne
Comment