Learn R Programming

supernova (version 2.1.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. This package adds proportional reduction in error, an explicit summary of the whole model, and separate formatting of p values and is intended to match the output used in Judd, McClelland, and Ryan (2017).

Usage

supernova(fit, type = 3)

superanova(fit, type = 3)

Arguments

fit

A fitted lm object

type

The type of sums of squares to calculate:

  • 1, I, and sequential compute Type I SS.

  • 2, II, and hierarchical compute Type II SS.

  • 3, III, and orthogonal compute Type III SS.

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 object being tested

models

Models created by generate_models

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
# NOT RUN {
supernova(lm(Thumb ~ Weight, data = Fingers))

# }

Run the code above in your browser using DataLab