Dear Statalist,
I am using mixed effects linear regression model to examine the relation between depression (3-level categorical variable) and blood pressure (repeated measure outcome variable, continuous) over 3 years.
I am trying to assess whether the 3 depression groups (low, mid, high) are different in terms of their blood pressure, at baseline and over time. I am not sure whether my syntax (copied below) captures this or not and need your advice.
Thanks in advance for your help.
—
Model:
mixed bp depression##c.year || id: year, covariance(unstructured)
Test for differences between groups at baseline (I use the Joint test):
margins r.depression, at (year=(0)) contrast
Test for differences between groups over time (I use the Joint test):
margins r.depression, at (year=(0(1)3)) contrast
Test for interaction between depression and time:
contrast depression#c.year
—
I am using mixed effects linear regression model to examine the relation between depression (3-level categorical variable) and blood pressure (repeated measure outcome variable, continuous) over 3 years.
I am trying to assess whether the 3 depression groups (low, mid, high) are different in terms of their blood pressure, at baseline and over time. I am not sure whether my syntax (copied below) captures this or not and need your advice.
Thanks in advance for your help.
—
Model:
mixed bp depression##c.year || id: year, covariance(unstructured)
Test for differences between groups at baseline (I use the Joint test):
margins r.depression, at (year=(0)) contrast
Test for differences between groups over time (I use the Joint test):
margins r.depression, at (year=(0(1)3)) contrast
Test for interaction between depression and time:
contrast depression#c.year
—
Comment