Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Integral or area-under-curve of marginsplot

    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?

    Edit: I accidentally double-posted this and cannot delete the post. The "correct" version of the post is found here: https://www.statalist.org/forums/for...or-marginsplot
    Last edited by Jyri Virta; 17 Nov 2022, 01:26.
Working...
X