Code: Alles auswählen
Treatment Session Participant
3 1 0.5
3 1 1.0
3 1 1.1
3 2 0
3 2 0.7
3 2 1.6
4 1 0.6
4 1 0.4
4 1 0.4
4 2 0
4 2 0.6
4 2 0.2
https://rcompanion.org/rcompanion/d_07.html
Ich habe das versucht zu reproduzieren:
Code: Alles auswählen
Data$Session = as.factor(Data$Session)
library(nlme)
model = lme(Participant ~ Treatment, random=~1|Session,
+ method="REML", data = Data)
anova.lme(model,
+ type="sequential",
+ adjustSigma = FALSE)
Code: Alles auswählen
> model = lme(Participant ~ Treatment, random=~1|Session, method="REML", data = Data)
Error in `rownames<-`(`*tmp*`, value = rownames(Fitted) <- origOrder) :
attempt to set 'rownames' on an object with no dimensions
Vielen Dank im Voraus!
Code: Alles auswählen
In addition: Warning message:
In Ops.factor(y[revOrder], Fitted) : ‘-’ not meaningful for factors