Hi! I have a question about interaction terms in a multinomial logistic regression. I am using mlogit to assess the association between a categorical exposure and outcome variable. I am also including four categorical covariates. My variables are as follows:
exposure = cathours (categorical sleep duration w/ 4 categories)
outcome = catlife (categorical life satisfaction w/ 3 categories)
effect modifiers = age and sex (both binary)
confounders = smoke and alcohol1 (both binary)
Here is my model without interaction terms:
mlogit catlife ib2.cathours i.agegp3 i.sex i.smoke i.alcohol1, baseoutcome(0)
I want to assess interaction/effect modification of age and sex, but I am not sure of the exact syntax for including these both as interaction terms. I believe that it would be something like this:
mlogit catlife ib2.cathours c.cathours##i.agegp3 c.cathours##i.sex i.smoke i.alcohol1, baseoutcome(0)
This doesn't seem quite right to me. Any help would be greatly appreciated!
exposure = cathours (categorical sleep duration w/ 4 categories)
outcome = catlife (categorical life satisfaction w/ 3 categories)
effect modifiers = age and sex (both binary)
confounders = smoke and alcohol1 (both binary)
Here is my model without interaction terms:
mlogit catlife ib2.cathours i.agegp3 i.sex i.smoke i.alcohol1, baseoutcome(0)
I want to assess interaction/effect modification of age and sex, but I am not sure of the exact syntax for including these both as interaction terms. I believe that it would be something like this:
mlogit catlife ib2.cathours c.cathours##i.agegp3 c.cathours##i.sex i.smoke i.alcohol1, baseoutcome(0)
This doesn't seem quite right to me. Any help would be greatly appreciated!
Comment