Message-ID: <CAKgKnP6Nx9Ee=vhPd6JtbUrzw4iyeXjh-=FZo9zCTo5RtcTjkQ@mail.gmail.com>
Date: 2021-02-25T17:36:28Z
From: Laura Coco
Subject: question regarding time as a continuous factor in a linear mixed effects model
Hello,
I am interested in investigating the main effects of group, time, and group
by time interaction on survey outcomes using linear mixed effects models.
Time is considered as continuous (number of days since baseline), but isn't
it also categorical, since I want to compare Session 1 vs Session 4 (for
example)? How is that handled in the model? As of now, time (days since
baseline) is being treated as one unit, rather than four separate sessions.
Here is an example of my code: mdl.outcome <- lmer(outcome ~ time*Group +
(1 | PID), data = dta)
Thank you!!
[[alternative HTML version deleted]]