Dear Statlist community,
First time posting. I'm using a linear mixed effect model for a project. The model includes an interaction term which allows me to compare the longitudinal changes of laboratory values between two groups. A simplified model looks something like this:
mixed lab_value i.group i.group#c.time i.groups#c.time#c.time, || ID: (c.time##c.time)
At postestimation, marginsplot procudes beautiful graphs for the groups. However, I would like to calculate the integral of the curve, or the area-under-curve, for the groups and also test whether they differ significantly.
Any help on this?
First time posting. I'm using a linear mixed effect model for a project. The model includes an interaction term which allows me to compare the longitudinal changes of laboratory values between two groups. A simplified model looks something like this:
mixed lab_value i.group i.group#c.time i.groups#c.time#c.time, || ID: (c.time##c.time)
At postestimation, marginsplot procudes beautiful graphs for the groups. However, I would like to calculate the integral of the curve, or the area-under-curve, for the groups and also test whether they differ significantly.
Any help on this?
Comment