Hi All,
Do we have to use margins command to get coefficients for group differences in linear mixed model with interaction terms? For eg: how to estimate if there is an association between baseline physical activity on the rate of change of cognitivescore over a period 9 years. I'm confused whether to use the coefficient derived from the below code or do we need margins code to answer my question? Please help me to understand the difference between interpretation of coefficients retrieved from the below code and the coefficients retrieved from the margins code in Stata. What would help me to get an overall effect of baseline physical activity on the cogitive outcome measured at different timepoints over 9 years.
My code [mi estimate: mixed cognitivescore baselinephysicalactivity Timeinyears c.Timeinyears#c.baselinephysicalactivity sex age || Patientid:]
Thank you so much!
Do we have to use margins command to get coefficients for group differences in linear mixed model with interaction terms? For eg: how to estimate if there is an association between baseline physical activity on the rate of change of cognitivescore over a period 9 years. I'm confused whether to use the coefficient derived from the below code or do we need margins code to answer my question? Please help me to understand the difference between interpretation of coefficients retrieved from the below code and the coefficients retrieved from the margins code in Stata. What would help me to get an overall effect of baseline physical activity on the cogitive outcome measured at different timepoints over 9 years.
My code [mi estimate: mixed cognitivescore baselinephysicalactivity Timeinyears c.Timeinyears#c.baselinephysicalactivity sex age || Patientid:]
Thank you so much!
Comment