Hi all,
I have built the following model : mixed cognition c.real_age_10_c70##c.real_age_10_c70##c.epiaging_1 0 i.sexep || id: real_age_10_c70, residuals(ar 1, t(real_age))
margins, at(c.real_age_10_c70 = (-3 -2 -1 0 1 2) c.epiaging_10 = (-1 0 1))
I study the evolution of cognition according to chronological age (per 10 years) and according to the effect of epigenetic biological aging (either reduced -10 years, average 0 or accelerated +10 years)(it is a continuous variable like chronological age). I would like to show the predicted cognitive scores according to the 3 levels of api aging (-10 years, 0 or +10 years) at each chronological age 40 years, 50 years, until 90 years. I want the 95% CI with the predicted scores and I wanted to provide a p value showing whether or not at each chronological age the predicted scores are different according to the 3 levels of epigenetic aging.
Margins does not provide this p value.
Could someone help me with this?
I will also do a margins plot to provide a graph.
I would like to provide a nice table after these 2 lines :
mixed cognition c.real_age_10_c70##c.real_age_10_c70##c.epiaging_1 0 i.sexep || id: real_age_10_c70, residuals(ar 1, t(real_age))
margins, at(c.real_age_10_c70 = (-3 -2 -1 0 1 2) c.epiaging_10 = (-1 0 1))
do you have any idea better than what I initially thought?
thank you so much
your help is greatly appreciated
best,
pierre
I have built the following model : mixed cognition c.real_age_10_c70##c.real_age_10_c70##c.epiaging_1 0 i.sexep || id: real_age_10_c70, residuals(ar 1, t(real_age))
margins, at(c.real_age_10_c70 = (-3 -2 -1 0 1 2) c.epiaging_10 = (-1 0 1))
I study the evolution of cognition according to chronological age (per 10 years) and according to the effect of epigenetic biological aging (either reduced -10 years, average 0 or accelerated +10 years)(it is a continuous variable like chronological age). I would like to show the predicted cognitive scores according to the 3 levels of api aging (-10 years, 0 or +10 years) at each chronological age 40 years, 50 years, until 90 years. I want the 95% CI with the predicted scores and I wanted to provide a p value showing whether or not at each chronological age the predicted scores are different according to the 3 levels of epigenetic aging.
Margins does not provide this p value.
Could someone help me with this?
I will also do a margins plot to provide a graph.
I would like to provide a nice table after these 2 lines :
mixed cognition c.real_age_10_c70##c.real_age_10_c70##c.epiaging_1 0 i.sexep || id: real_age_10_c70, residuals(ar 1, t(real_age))
margins, at(c.real_age_10_c70 = (-3 -2 -1 0 1 2) c.epiaging_10 = (-1 0 1))
do you have any idea better than what I initially thought?
thank you so much
your help is greatly appreciated
best,
pierre