Reputation: 11
can anyone tell me how to get other output statistics for my ANOVA results? I want a result table with the sum of squares (SS), the number of degrees of freedom (df), the F-statistic and the corresponding p-value.
But so far I only get Chisq, Df, Pr(>Chisq) output.
Thanks in advance for the help.
# Fit the classical model
model1 <- lmer(avgAmplitude ~ stimulusAge * stimulusResponse * congruency * subjectType + (1|id), data = dataset1)
library (car)
Anova(model1)
Here an excerpt of the data frame
Upvotes: 1
Views: 741
Reputation: 73842
Set the test.statistic=
argument to "F"
fm1 <- lmer(Reaction ~ Days + (1 | Subject), sleepstudy)
car::Anova(fm1, test.statistic="F")
# Analysis of Deviance Table (Type II Wald F tests with Kenward-Roger df)
#
# Response: Reaction
# F Df Df.res Pr(>F)
# Days 169.4 1 161 < 2.2e-16 ***
# ---
# Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
By the way, this is also in the documentation ?car::Anova
;)
Upvotes: 1