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
Ramsey Reset Test for single years vs whole data periodHi, I am running OLS regressions, firstly for 3 separate years (2006, 2010 and then 2015) and then …
Fama&MacBeth: xtfmb function. Time-fixed effectsHello statalisters, My case is that of an unbalanced panel data composed by 25,714 companies ("cusi…
Constraint function in optimize()Hello, I'm currently facing the following problem: I'm trying to minimize the variance of a portfol…
What estimation methods can endogenicity, heteroskedasticity, autocorrelation and fixed effects be solved without using GMM?Hello netizens of Stata forum. I have a panel of 13 countries and 8 years. I tried with the GMM but …
Keeping mutliple observationsHello, I am currently working with a complete dataset with all firms in a country. However, I only …
Subscribe to:
Post Comments (Atom)
0 Response to Issue with dummy variables in mixlogit
Post a Comment