'Mixed model for repeated measures
my data |id| Time | dependentvar| var1| var2| var3| |:-|:----:|:-----------:|:---:|:---:|:---:| |1 | 1 | 200 | 1 | 0.5 | 2 | |1 | 2 | 300 | NA | NA | 2 | |2 | 1 | 200 | 1 | 0.5 | 2 | |2 | 2 | 500 | NA | NA | NA |
I have repeated measures. I want to measure the effects of var2 (continuous) on the outcome dependentvar(continuous) so I am using a mixed model
m<- lmer(dependentvar~ var1+var2+
var3+Time+(1+Time|ID), data=db)
summ(m)
should the code be like this with two || between ID and Time?
- some results I get that the RR for a variable is 0.00 how do I interpret this?
- How do I decide if the random effects (Time and ID) are used correctly as random effects?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
