Hi all,
I would like to reproduce the attached foresplot (done in R) using Stata 15. I have the following linear mixed models (simplified version here) :
mixed score c.age##c.var1 i.sexep || id: age
mixed score c.age##c.var2 i.sexep || id: age
mixed score c.age##c.var3 i.sexep || id: age
etc. until var 6
For each of the 6 'model 1' models (the one with var 1 to the one with var 6), I would like to extract coefficients for var1 (simple effect) and coefficient for interaction var1 with cage as well as 95% CI and p values. I would like to reproduce the attached forest plot with for each of the 6 models (2 coefficients the one for the simple effect and the one for the interaction) with 95% CI and p value in each case. I would like to have the two coefficients for each model closer than the coefficients for the other models. I am a bit struggling with reproducing exactly this. I have used coefplot in the past but not exactly like this.
Any help would be really highly appreciated !
Thank you so much, L.
I would like to reproduce the attached foresplot (done in R) using Stata 15. I have the following linear mixed models (simplified version here) :
mixed score c.age##c.var1 i.sexep || id: age
mixed score c.age##c.var2 i.sexep || id: age
mixed score c.age##c.var3 i.sexep || id: age
etc. until var 6
For each of the 6 'model 1' models (the one with var 1 to the one with var 6), I would like to extract coefficients for var1 (simple effect) and coefficient for interaction var1 with cage as well as 95% CI and p values. I would like to reproduce the attached forest plot with for each of the 6 models (2 coefficients the one for the simple effect and the one for the interaction) with 95% CI and p value in each case. I would like to have the two coefficients for each model closer than the coefficients for the other models. I am a bit struggling with reproducing exactly this. I have used coefplot in the past but not exactly like this.
Any help would be really highly appreciated !
Thank you so much, L.
Comment