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
Having multiple varlists using syntax commandHello all, I was wondering how I can have multiple varlists using syntax command. As an example for …
marginal effects in logit modelDear members, Currently I am struggling with doing logit regression using panel data. Am using a pa…
Do-file stops processing commands following ODBC SQL SELECT loadingUsing Stata 15.1/IC on Win 10 Pro, 16GB RAM, Intel i7-8550U CPU @ 1.80GHz 4 core processor Hi Stat…
How to solve this Y axis problem...?Hi everybody, I am new in this network. I am new with Stata. I am using the 15.1 and trying to plot …
Stata program for Blau and Kahn (2007)Hi, I am intersted in coding a model that is similar to Blau and Kahn (2007), but I dont have many …
Subscribe to:
Post Comments (Atom)
0 Response to Issue with dummy variables in mixlogit
Post a Comment