resid_plot: Plot the Distribution of (Standardized) Residuals

View source: R/diagnostic_plots.R

resid_plotR Documentation

Plot the Distribution of (Standardized) Residuals

Description

This function plots a histogram (with kernel density function and normal distribution) of the standardized residuals or a basic plot the (standardized) residuals, or both.

Usage

resid_plot(res, std = FALSE, type = "hist", ...)

Arguments

res

A vector of residuals.

std

A boolean indicating whether the residuals plot is for standardized residuals or original residuals.

type

A string indicating either: "hist" (standardized residual histogram with superimposed kernel density estimator and normal distribution), "resid" (standard residual plot), or "both"

...

Additional parameters

Author(s)

Yuming Zhang


simts documentation built on Aug. 31, 2023, 5:07 p.m.