Comments (6)
I think I did this to be compatible with APA standard. However, I cannot find my APA manual copy right now to check this. But I am pretty sure about it.
If you want the R default just use the anova()
method and not the nice()
method for an object of class afex_aov
(note that the nice()
method is called for printing). e.g.:
require(afex)
data(md_12.1)
a <- aov_ez("id", "rt", md_12.1, within = c("angle", "noise"),
anova_table=list(correction = "HF", es = "none"))
nice(a)
# Anova Table (Type 3 tests)
#
# Response: rt
# Effect df MSE F p.value
# 1 angle 2, 18 3560.00 40.72 *** <.0001
# 2 noise 1, 9 8460.00 33.77 *** .0003
# 3 angle:noise 2, 18 1160.00 45.31 *** <.0001
# ---
# Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘+’ 0.1 ‘ ’ 1
#
# Sphericity correction method: HF
# Warning message:
# HF eps > 1 treated as 1
anova(a, correction = "HF")
# Anova Table (Type 3 tests)
#
# Response: rt
# num Df den Df MSE F ges Pr(>F)
# angle 2 18 3560 40.719 0.39012 2.087e-07 ***
# noise 1 9 8460 33.766 0.38660 0.000256 ***
# angle:noise 2 18 1160 45.310 0.18827 9.424e-08 ***
# ---
# Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
# Warning message:
# HF eps > 1 treated as 1
I think this solves this issue.
from afex.
PS: R default is also not to round the p-values in the ways that nice()
does. I very much prefer the rounding as well.
from afex.
I prefer the rounded p-values but I'm looking at the APA manual right in front of me and I don't see anything about asterisks on F-values.
from afex.
I think an example ANOVA table was in the 5th edition handbook. But I cannot find a copy of it around here. Only the new 6th edition.
But note that in the example tables in the new version, the asterisks are usually also with the test statistics. This is also done in afex. I agree that there are no tables that have both test statistics and p-values, but still I am convinced it is better like that.
from afex.
The APA manual specifies that in tables, columns of numbers should be decimal-aligned. Putting the asterisks on makes them not decimal-aligned.
from afex.
I feel like the alignment question cannot be solve in R (or not without a lot of headache). This needs to be done with whatever software you write your papers. If you want no stars, you can easily ask for no stars.
As I said before, if you want the R default, use the anova()
method. If you want what I find better, use the nice()
method. If you want something that is in between the R default and the nice()
method, then you have to program it on your own. I like the stars with the F-values and I believe this is how it was supposed to be in the previous APA version. You will need a really good argument to change the default nice()
output and so far your arguments were not really strong.
from afex.
Related Issues (20)
- Other suitable contrasts than contr.sum HOT 1
- error for running mixed() with a null model (no fixed effect) HOT 1
- Understanding inconsistencies between `aov_car()` and equivalents HOT 1
- Adding geoms to `afex_plot()` HOT 5
- Degree of Freedom in aov_car output HOT 3
- Can aov_car report 95% confidence interval? HOT 6
- Unexpected outcomes when setting contrasts manually HOT 3
- Anova table data heading incorrect HOT 2
- Issues with next version of ggplot2 HOT 2
- [Feature request] Add ability to automatically simplify mixed models following Singman and Kellen (2019)
- Residuals with `mixed`-fitted model HOT 3
- Issue with next version of ggbeeswarm HOT 1
- Bump minimum needed R version to `4.1` for `{pbkrtest}` update?
- Issue with upcoming ggplot2 version HOT 3
- [Sugestion] MMRM (GLS) for Afex: Kenward-Roger and Satterthwaite for free :) HOT 1
- Error in ctrl$optimizer <- optimizer[..i] : object of type 'symbol' is not subsettable
- emmeans gives wrong results for afex_aovs if the at = argument is reversed HOT 1
- Centering Covariate Still Throws Error HOT 5
- Printing method for `nice` collides with `rempsyc::nice_table()` of class `nice_table` HOT 2
- different residuals HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afex.