step1_plot_diagnostic {AccelStab}R Documentation

Create Diagnostic Plots

Description

Generate residual diagnostic plots from a step1_down fit.

Usage

step1_plot_diagnostic(step1_down_object, bins = 7, residuals = "classic")

Arguments

step1_down_object

The fit object from the step1_down function (required).

bins

The number of bins in the Histogram plot (default 7).

residuals

The type of residuals to plot classic/studentized/standardized (default classic).

Details

Use the fit object obtained from the step1_down function to plot the residual diagnostic plots, assess the quality of fit and search for anomalies. Change the type of Residuals assessed. Plots created are: Residuals Histogram, QQ Plot of Residuals, Observed Vs Predicted results, Residuals Vs Predicted results and Residuals By Time.

Value

A list containing the five ggplot2 plots.

Examples

#load antigenicity data
data(antigenicity)

#run step1_down fit
fit1 <- step1_down(data = antigenicity, y = "conc", .time = "time",
 C = "Celsius", max_time_pred = 3)

#plot diagnostic plots to asses the fit
step1_plot_diagnostic(fit1)


[Package AccelStab version 2.2.1 Index]