plot_diagnostics: Plot regression diagnostics

View source: R/plot_diagnostics.r

plot_diagnosticsR Documentation

Plot regression diagnostics

Description

This function plots the distribution of the phylogenetically-normalized residuals to check if it meets the assumption of normality. Another panel in the plot is the residuals vs. fitted values. It is typically helpful for diagnosing model adequacy and the equal variance assumption. There should be little to no trend and no "funneling" pattern in the residuals vs. fitted plot.

Usage

plot_diagnostics(output_reg)

Arguments

output_reg

A list outputted from the fit_punc_model function

Value

This function returns an object of the ggplot class.

Author(s)

Kevin Surya


suryakevin/drugcandy documentation built on May 6, 2022, 6:37 p.m.