supernova: supernova

View source: R/supernova.R

supernovaR 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)

superanova(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 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()

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

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))
supernova(lm(mpg ~ disp, data = mtcars)) %>% print(pcut = 8)

supernova documentation built on Nov. 5, 2023, 1:09 a.m.