library(knitr)
Psychology is still (unfortunately) massively using analysis of variance (ANOVA). Despite its relative simplicity, I am very often confronted to errors in its reporting, for instance in student's theses or manuscripts. Beyond the incomplete, uncomprehensible or just wrong reporting, one can find a tremendous amount of genuine errors (that could influence the results and their intepretation), even in published papers! (See the excellent statcheck to quickly check the stats of a paper). This error proneness can be at least partially explained by the fact that copy/pasting the (appropriate) values of any statistical software and formatting them textually is a very annoying process.
How to end it?
We believe that this could be solved (at least, partially) by the default implementation of current best practices of statistical reporting. A tool that automatically transforms a statistical result into a copy/pastable text. Of course, this automation cannot be suitable for each and every advanced usage, but would probably be satisfying for a substantial proportion of use cases. Implementing this unified, end-user oriented pipeline is the goal of the psycho package.
Let's start by doing a traditional ANOVA with adjusting (the ability to flexibly regulate one's emotions) as dependent variable, and sex and salary as categorical predictors.
# devtools::install_github("neuropsychology/psycho.R") # Install the latest psycho version library(psycho) df <- psycho::affective # load a dataset available in the psycho package aov_results <- aov(Adjusting ~ Sex * Salary, data=df) # Fit the ANOVA summary(aov_results) # Inspect the results
The psycho
package include a simple function, analyze()
that can be applied to an ANOVA object to format its content.
analyze(aov_results)
It formats the results, computes the partial omega-squared as an index of effect size (better than the eta2, see Levine et al. 2002, Pierce et al. 2004) as well as its interpretation and presents the results in a APA-compatible way.
Note that the analyze()
method also exists for other statistical procudures, such as correlations, t-tests and regressions.
Of course, these reporting standards should change, depending on new expert recommandations or official guidelines. The goal of this package is to flexibly adaptive to new changes and good practices evolution. Therefore, if you have any advices, opinions or such, we encourage you to either let us know by opening an issue, or even better, try to implement them yourself by contributing to the code.
This package helped you? Don't forget to cite the various packages you used :)
You can cite psycho
as follows:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.