I would like to ask for advice regarding the following question: I would like to compute a mixed effects regression with longitudinal data (2 time points) with multiple imputation data. This is the syntax to set the data:
mi set wide
mi register imputed anx_1 anx_2 Neuro_1
mi impute mvn anx_1 anx_2 Neuro_1 , add(10) rseed (53421)
mi reshape anx_ , i(id) j(time)
The question is whether values of anx_ change differently over time and whether this association is independent from a constant variable measured at the first time point (Neuro_1). I specified the model as follows:
mi estimate: xtmixed anx_ ib1.time##ib1.Group || id:
Now a ran the model adjusting for Neuro_1:
mi estimate: xtmixed anx_ ib1.time##ib1.Group Neuro_1 || id:
While the main effects of time and Group differ, the values for the interactions time#Group are completely identical in both models, so it appears that adjusting does not work for this part.
Can anybody give advice were I am wrong?
Related Posts with Adjust for time constant covariate in mixed effects regression using multiple imputation
Coefplot can't see y-axis labelsI have tried everything I can think of, but I currently cannot see the y-axis labels on the Coefplot…
New version of invdesc on SSCThanks yet again to Kit Baum, a new version of the invdesc package is now available for download fro…
New version of qqvalue on SSCThanks once again to Kit Baum, a new version of the qqvalue package is now available for download fr…
Problem with replace in a dummyHi everyone. I have a problem. There are two dummy. The first one is e6_m_c1 and it's equal to 1 if …
Standard errors ivqte vs qreg2Maybe more of an Econometrics question, but I was wondering why the standard errors between qreg2 an…
Subscribe to:
Post Comments (Atom)
0 Response to Adjust for time constant covariate in mixed effects regression using multiple imputation
Post a Comment