Dear Stata users,
I would like to generate interactions between categorical and continuous variable in MNL model. This is the code I am using:
xi: clogit choice Mov MovS Rst i.obs_MS#c.day1 i.obs_M#c.day1 i.obs_R#c.day1 , group(lp1)
Unfortunately this does not work.
This is the output I am getting
"interactions not allowed"
Is there a short way to gen such interactions?
Related Posts with Interaction between categorical and continous variable - MNL
ARDL-EC model specificationHi everyone, assume the Stata command is as follows: xtpmg d.Y d.X, lr(l.Y X) ec(ec) replace pmg T…
Monte Carlo - Simulations: random samples, record meansHello, I have a dataset with the variable "LeadLevels" (continuous numerical variable, cannot be a …
factor-variable and time-series operators not allowedHi everyone,Hi everyone, I am working with cross section data in STATA 16. I am using the command IVQREG2 and w…
Basic sum questionHello, I am new to stata and I need to calculate the gross value added in the entire year 2020 (both…
nl with inequality constraints lead to bad local optima, with fixStataCorp has a helpful FAQ, How do I fit a linear regression with interval (inequality) constraints…
Subscribe to:
Post Comments (Atom)
0 Response to Interaction between categorical and continous variable - MNL
Post a Comment