Hello STATA List users,
I am performing a mixed effect model that models NfL (continuous) with Age (continuous) across multiple CAG repeat lengths (from 40-46) (ordinal continuous). The code that I am currently using is as follows:
I am trying to save the Mixed-effects REML regression table into a putdocx document but if I follow this code with 'putdocx table control = etable', it only puts the margins table. Is there a way I can get both tables into a word document?
I look forward to your responses.
Annabelle
I am performing a mixed effect model that models NfL (continuous) with Age (continuous) across multiple CAG repeat lengths (from 40-46) (ordinal continuous). The code that I am currently using is as follows:
Code:
summarize CAG if disease_grp==1, meanonly
local min_cag = round(r(min))
local max_cag = round(r(max))
forvalues e = `min_cag'/`max_cag' {
summarize Age if CAG==`e' & disease_grp==1, meanonly
local min = round(r(min))
local max = round(r(max))
mixed NfL c.Age c.CAG if disease_grp==1, stddeviations reml
margins, at(Age=(`min'(0.15)`max') CAG=`e') post
est store model_cag`e'
I look forward to your responses.
Annabelle

Comment