verif_lm: Advanced residual plots and tests for linear models

View source: R/verif_lm.R

verif_lmR Documentation

Advanced residual plots and tests for linear models

Description

Function for creating residual plots in ggplot style and all necessary tests, so that the assumptions of linear regression models can be verified.

Usage

verif_lm(
  mdl,
  dat = NULL,
  results = c("markdown", "return", "print"),
  mkd_path = NULL
)

Arguments

mdl

A linear model of class lm.

dat

The dataset on which the model was applied

results

"markdown" creates a markdown summary document. "return" returns all analyses in a list. "print" prints the output on the console and shows the plot.

mkd_path

Can be used to set the path, where the created markdown document should be stored. If NULL, the current path (getwd()) will be used to save the markdown document.

Value

Returns, if desired, a list of length 6 with an summary of tests, all calculated tests and plots.

Author(s)

Dennis Freuer


freuerde/puzzle documentation built on March 27, 2022, 5:30 p.m.