I am using the lme()
funtion in R (from nlme
package) to perform a Repeated Measures ANOVA. Here's the formula
lme(Iv ~ Dv1 + Dv2 + Time + Dv1:Time + Dv2:Time, random = ~ 1 | replicate, data = df)
Where Iv
is the response variable, and Dv1
and Dv2
are dependent variables. Should Time
be treated as a continuous or a categorical variable here? In my case, the measurements were done at 5 different times and the time intervals between each measurement are not equal.