supernova {supernova} | R Documentation |
supernova
Description
An alternative set of summary statistics for ANOVA. Sums of squares, degrees of freedom, mean squares, and F value are all computed with Type III sums of squares, but for fully-between subjects designs you can set the type to I or II. This function adds to the output table the proportional reduction in error, an explicit summary of the whole model, separate formatting of p values, and is intended to match the output used in Judd, McClelland, and Ryan (2017).
Usage
supernova(fit, type = 3, verbose = TRUE)
## S3 method for class 'lm'
supernova(fit, type = 3, verbose = TRUE)
## S3 method for class 'lmerMod'
supernova(fit, type = 3, verbose = FALSE)
Arguments
fit |
A model fit by |
type |
The type of sums of squares to calculate (see |
verbose |
If |
Value
An object of the class supernova
, which has a clean print method for displaying the
ANOVA table in the console as well as a named list:
tbl |
The ANOVA table as a |
fit |
|
models |
Models created by |
References
Judd, C. M., McClelland, G. H., & Ryan, C. S. (2017). Data Analysis: A Model Comparison Approach to Regression, ANOVA, and Beyond (3rd ed.). New York: Routledge. ISBN:879-1138819832
Examples
supernova(lm(mpg ~ disp, data = mtcars))
change_p_decimals <- supernova(lm(mpg ~ disp, data = mtcars))
print(change_p_decimals, pcut = 8)