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
how to simplify when 2 do files have a lot of same contents?My 1st do file is (a much shorter version): Code: clear * use "/Users/zhaoyao/Documents/wiki/daily_…
Student Course Enrollment Data (Long to Wide): Transpose, Reshape, Collapse?My data (student course enrollment) is currently in long form, and I would ideally like to reshape i…
How to store the beta/standardized coefficients after a regressionIs there a way to store the beta/standardized coefficients after a regression? For example, how can…
Effect of msising dataHi all, I want to look at the effect of policy on the change in working hours for a certain age gro…
How to check panel model's robustnessGreetings! Please, kindly let me know how to conduct postestimation tests for panel model in order …
Subscribe to:
Post Comments (Atom)
0 Response to Adjust for time constant covariate in mixed effects regression using multiple imputation
Post a Comment