Giter Site home page Giter Site logo

Significance asterisks about afex HOT 6 CLOSED

singmann avatar singmann commented on August 17, 2024
Significance asterisks

from afex.

Comments (6)

singmann avatar singmann commented on August 17, 2024

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.

singmann avatar singmann commented on August 17, 2024

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.

SunByrne avatar SunByrne commented on August 17, 2024

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.

singmann avatar singmann commented on August 17, 2024

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.

SunByrne avatar SunByrne commented on August 17, 2024

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.

singmann avatar singmann commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.