supernova (version 2.5.1)

supernova: 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 lm supernova(fit, type = 3, verbose = TRUE)

# S3 method for lmerMod supernova(fit, type = 3, verbose = FALSE)

superanova(fit, type = 3, verbose = TRUE)

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 data.frame

fit

The original lm or lmer object being tested

models

Models created by generate_models

Arguments

fit

A model fit by lm() or lme4::lmer()

type

The type of sums of squares to calculate (see generate_models()). Defaults to the widely used Type III SS.

verbose

If FALSE, the description column is suppressed.

Details

superanova() is an alias of supernova()

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

Run this code
supernova(lm(Thumb ~ Weight, data = Fingers))
format_p <- supernova(lm(Thumb ~ Weight, data = Fingers))
print(format_p, pcut = 8)

Run the code above in your browser using DataLab