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
loop for graphsI'm a stata novice, and I've searched and tried things I've found, but I just can't figure this out.…
How to Test The Parallel Trends Assumption Of Difference in Differences EstimationHello All, I apologize for this question, as I know that it has been asked before but I am unable t…
Working with weekly*dataHello, I'm sure this problem will appear simple, but I have not found my way out of it. I'm having…
Analyze survey data with gsemHi all, I would like to analyze a two-period survey data from an impact evaluation. Dependent and i…
Locate where a variable changes valueDear Statalist, I have a dataset on CEO and firm characteristics. My question is how to find the ye…
Subscribe to:
Post Comments (Atom)
0 Response to Adjust for time constant covariate in mixed effects regression using multiple imputation
Post a Comment