Learn R Programming

simts (version 0.1.1)

resid_plot: 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