diagnosis: diagnosis

Description Usage Arguments Value Examples

View source: R/diagnosis.R

Description

Diagnose residuals and make plots of a linear model produced from lm1()

Usage

1
diagnosis(model)

Arguments

model

input a linear model produced from lm1()

Value

different types residuals of the model: residuals, standardized residuals and studentized residuals. Also print residual plot, qqplot, scale-location plot and standardized residuals vs leverage plot.

Examples

1
2
model <- lm1(mpg ~ disp + wt, data = mtcars)
diagnosis(model)

mengqi00/linear1 documentation built on Dec. 21, 2021, 4:57 p.m.