ols_anova: ANOVA

View source: R/ols-anova.R

ols_anovaR Documentation

ANOVA

Description

ANOVA for regression model.

Usage

ols_anova(model, ...)

Arguments

model

An object of class lm.

...

Other arguments.

Value

ols_anova returns an object of class "ols_anova". An object of class "ols_anova" is a list containing the following components:

error_df

residual degrees of freedom

model_df

regression degrees of freedom

total_df

total degrees of freedom

ess

error sum of squares

rss

regression sum of squares

tss

total sum of squares

rms

regression mean square

ems

error mean square

f

f statistics

p

p-value for f

Examples

# model
model <- lm(mpg ~ disp + hp + wt, data = mtcars)

# anova
ols_anova(model)


olsrr documentation built on Nov. 18, 2026, 5:07 p.m.