Hello,
I am trying to estimate the mixlogit using the below syntax:
mixlogit choice distance fac_type alt_dum*, rand(oop) group(case_id)
where oop, distance, and fac_type are alternative-specific variables and I would like a random coefficient for the variable oop.
In addition, I also include dummies for alternatives, in the alt_dum* variables. When I run this, I receive the error message:
"At least one variable has been specified to have both fixed and random coefficients"
Could anyone please help explain why I had this error message?
The syntax works fine without the alternative dummies, or without all the alternative dummies.
Any help is very much appreciated.
Many thanks,
Yen.
Related Posts with Issue with dummy variables in mixlogit
estpost with xtsumHi all I have used the command estpost sum esttab using nsw_12_summary_all.csv, cells("mean") to …
Fixed effects model with high rho and negative corr(u_i, Xb): a problem?I'm running some regression models with panel data from Brazilian municipalities (N = 64,708, Number…
How to use the foreach code with multiple varlists.Hello Statalister's Im using Stata 12.1, my dataset has around 50000 participants, each participant…
How to draw bivariate random vector (v,u) which is bivariate normal, but with a correlation which depends on a third variable x?Dear all, I would like to simulate some data: a bivariate random vector (v,u) which is bivariate no…
Finding a target variabel across datasets in the same directory*Hi, I've several datasets in the directory, and want to know which ones contain my variable of inter…
Subscribe to:
Post Comments (Atom)
0 Response to Issue with dummy variables in mixlogit
Post a Comment