Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Degree of Freedom in aov_car output #107

Closed
LilianYou opened this issue Nov 20, 2021 · 3 comments
Closed

Degree of Freedom in aov_car output #107

LilianYou opened this issue Nov 20, 2021 · 3 comments

Comments

@LilianYou
Copy link

Hi,

I love using aov_car, but the degrees of freedom are not integers. I wonder if there are any parameters I can adjust to the code that adjusts the dof in the output to be all integers?

@LilianYou
Copy link
Author

Just add more details. I'm using aov_car to run repeated measurements.

@singmann
Copy link
Owner

Literally the first example of the examples of aov_car() show how to do that:

library("afex")
data(md_12.1)
aov_ez("id", "rt", md_12.1, within = c("angle", "noise"), 
       anova_table=list(correction = "none", es = "none"))
# Anova Table (Type 3 tests)
# 
# Response: rt
#        Effect    df     MSE         F p.value
# 1       angle 2, 18 3560.00 40.72 ***   <.001
# 2       noise  1, 9 8460.00 33.77 ***   <.001
# 3 angle:noise 2, 18 1160.00 45.31 ***   <.001
# ---
# Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘+’ 0.1 ‘ ’ 1

# Default output
aov_ez("id", "rt", md_12.1, within = c("angle", "noise")) 
# Anova Table (Type 3 tests)
# 
# Response: rt
#        Effect          df     MSE         F  ges p.value
# 1       angle 1.92, 17.31 3702.02 40.72 *** .390   <.001
# 2       noise        1, 9 8460.00 33.77 *** .387   <.001
# 3 angle:noise 1.81, 16.27 1283.22 45.31 *** .188   <.001
# ---
# Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘+’ 0.1 ‘ ’ 1
# 
# Sphericity correction method: GG 

@LilianYou
Copy link
Author

Great. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants