Dear Listers,
I have data collected at 7 time points: baseline, 3 weeks, 6 weeks, 9 weeks, 12 weeks, 18 and 24 weeks - see data example below.
At each point, participants are asked to rate their wellbeing and I am interested in assessing how it changes over time. For this I plan to use a mixed model regressing welbeing scores on time. As participants are initially asked to rate wellbeing evert 3 months and then every 6 months, I am unsure how to best model time.
I was originally planning to model it as a categorical variable but not sure how to best reflect the change in follow-up assessment - can I still set up the model as
Or if time needs to be recoded somehow?
I have data collected at 7 time points: baseline, 3 weeks, 6 weeks, 9 weeks, 12 weeks, 18 and 24 weeks - see data example below.
At each point, participants are asked to rate their wellbeing and I am interested in assessing how it changes over time. For this I plan to use a mixed model regressing welbeing scores on time. As participants are initially asked to rate wellbeing evert 3 months and then every 6 months, I am unsure how to best model time.
I was originally planning to model it as a categorical variable but not sure how to best reflect the change in follow-up assessment - can I still set up the model as
Code:
mixed wellbeing i.time || id:
Code:
* Example clear input int id byte time double wellbeing 1 0 2 1 3 2 1 6 6 1 9 3 1 12 2 1 18 4 1 24 3 2 0 7 2 3 3 2 6 3 2 9 . 2 12 2 2 18 1 2 24 2 3 0 7 3 3 7 3 6 5 3 9 . 3 12 7 3 18 4 3 24 5 end
Comment