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
Cmxtmixlogit discrete choice experiment with choice card blocksDear all, I am encountering a convergence problem with the 'cmxtmixlogit' command, using STATA 16.1…
zero-inflated and right-censored count dataDear all statalists, Thank you for clicking on my post. What is the proper way to deal with zero-in…
Number of splitvoters from two variablesI need to know the number of split voters in Denmark - those who did not vote for the same party at …
Sum variables taking into account missing dataHello, I have the following dataset: Code: * Example generated by -dataex-. To install: ssc insta…
Error: <istmt>: 3499 ASREGFMB() not foundGood morning, I try to run the asreg command and I receive this error. I checked that the installati…
Subscribe to:
Post Comments (Atom)
0 Response to Interaction between categorical and continous variable - MNL
Post a Comment