residual_hist: (Stat 5100 function) Obtain a histogram of residuals for a...

Description Usage Arguments Value

View source: R/plotting.R

Description

(Stat 5100 function) Obtain a histogram of residuals for a linear model. This function also plots a normal curve on top of the histogram with the same mean and standard deviation. This helps you assess the validity of the normality assumption of residuals in linear regression.

Usage

1
residual_hist(lmobject, ...)

Arguments

lmobject

A linear model object from the lm() function.

Value

A histogram of the residuals along with a theoretical normal curve with the same mean and standard deviation.


ethanancell/stat5100package documentation built on April 18, 2021, 2:40 a.m.