I have a data set including four columns. Group variable includes a control group, and a treatment group, measured at 6 times (time0,time1,time2,time3,time4,time5). In total, the data sets include 12 subjects (6 subjects in the control group and 6 subjects in the treatment group).
Subject Time Group Analyte
1 0 1
1 1 1
1 2 1
1 3 1
1 4 1
1 5 1
2 0 1
2 1 1
2 2 1
2 3 1
2 4 1
2 5 1
3 0 1
3 1 1
3 2 1
As I have a small data set, which one of the following function should be used? Especially, Do you recommend to use the model 4 (with an unstructured correlation matrix and weighted)? Why?
The first model is:
aov (Analyte ~ Group*Time + Error(Subject/Time), data=data)
The second model is:
lmer(Analyte~Time + Group + Time:Group + (1|Subject))
The Third model is:
lmer(Analyte~Time + Group + Time:Group + (Group|Subject)) # with different slopes
The fourth model is:
gls(Analyte ~ time * group, data = data, correlation = corSymm(form = ~ 1 | subject), weights = varIdent(form = ~ 1 | time))