Hi
I need some help in interpreting the coefficients for interaction terms in a mixed-effects model (longitudinal analysis) I've run to analyse change in my outcome over time (in months) given a set of predictors. I know this has been posted about before, but I'm still having difficulty in figuring out what's happening in my model! Here we have reason to believe that the main predictor - Dka - interacts with duration (time) in its effects on outcome.
- Outcome in continuous
- Duration is my time metric in months, and the model requires quadratic and cubic terms for duration. Duration runs from zero to 12 months
- Main predictor of interest is dka with three categories (coded as 1, 2 and 3 with 3 set as the reference)
- I know that the quadratic and cubic terms for duration should be entered differently in Stata, but for now I've entered it as below
- A likelihood ratio test with and without the interaction terms is statistically significant, p>0.005
The model run and its result:
The coefficients for dka are statistically significant. Those with severe and moderate dka have higher values of outcome compared to those with normal dka (ref group), adjusting for sex, age at diagnosis, ethnicity and clinic when duration=0 (or at diagnosis in other words). Results are in the expected direction and effect. How would I interpret the coefficients for the interaction terms between dka and duration (-1.16 and -0.65)?
Thanks!
/Amal
I need some help in interpreting the coefficients for interaction terms in a mixed-effects model (longitudinal analysis) I've run to analyse change in my outcome over time (in months) given a set of predictors. I know this has been posted about before, but I'm still having difficulty in figuring out what's happening in my model! Here we have reason to believe that the main predictor - Dka - interacts with duration (time) in its effects on outcome.
- Outcome in continuous
- Duration is my time metric in months, and the model requires quadratic and cubic terms for duration. Duration runs from zero to 12 months
- Main predictor of interest is dka with three categories (coded as 1, 2 and 3 with 3 set as the reference)
- I know that the quadratic and cubic terms for duration should be entered differently in Stata, but for now I've entered it as below
- A likelihood ratio test with and without the interaction terms is statistically significant, p>0.005
The model run and its result:
Code:
mixed outcome durationm durationm2 durationm3 c.durationm##ib3.dka sex1 diagage i.ethnicn ib3.pdu || id: durationm, cov(unstr) mle var
Code:
Mixed-effects ML regression Number of obs = 1288
Group variable: id Number of groups = 364
Obs per group: min = 1
avg = 3.5
max = 9
Wald chi2(14) = 902.26
Log likelihood = -5369.7496 Prob > chi2 = 0.0000
-----------------------------------------------------------------------------------
outcome | Coef. Std. Err. z P>|z| [95% Conf. Interval]
------------------+----------------------------------------------------------------
durationm | -20.2095 .8240737 -24.52 0.000 -21.82465 -18.59434
durationm2 | 3.252352 .1656776 19.63 0.000 2.92763 3.577075
durationm3 | -.1467208 .0092647 -15.84 0.000 -.1648793 -.1285623
durationm | 0 (omitted)
|
dka |
severe <7.1 | 10.03363 2.810954 3.57 0.000 4.524258 15.543
moderate 7.1-7.3 | 6.121846 2.22295 2.75 0.006 1.764944 10.47875
|
dka3#c.durationm |
severe <7.1 | -1.162192 .3961143 -2.93 0.003 -1.938562 -.3858225
moderate 7.1-7.3 | -.6533604 .3149256 -2.07 0.038 -1.270603 -.0361175
|
sex1 | -.4225161 1.405661 -0.30 0.764 -3.177561 2.332528
diagage | .3344252 .1695414 1.97 0.049 .0021302 .6667203
|
ethnicnew4 |
mixed | 6.124627 2.510784 2.44 0.015 1.203582 11.04567
Black | 4.876973 1.865152 2.61 0.009 1.221342 8.532604
asian-other | 6.035488 1.739225 3.47 0.001 2.62667 9.444306
|
pdu |
PZ036 | .3570729 1.846792 0.19 0.847 -3.262574 3.97672
PZ058 | 5.234565 1.699423 3.08 0.002 1.903757 8.565374
|
_cons | 85.66271 3.222403 26.58 0.000 79.34692 91.97851
-----------------------------------------------------------------------------------
------------------------------------------------------------------------------
Random-effects Parameters | Estimate Std. Err. [95% Conf. Interval]
-----------------------------+------------------------------------------------
id: Unstructured |
var(durati~m) | 2.890782 .5151161 2.038626 4.099144
var(_cons) | 166.5512 24.03746 125.5158 221.0025
cov(durati~m,_cons) | -11.85645 2.938093 -17.615 -6.097888
-----------------------------+------------------------------------------------
var(Residual) | 141.8493 8.059522 126.9007 158.5588
----------------------------------------------------------------------
Thanks!
/Amal
Comment