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)

Arguments

step1_down_object

The fit object from the step1_down function (required).

bins

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

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. Plots created are: Residuals Histogram, Observed Vs Predicted results, Residuals Vs Predicted results and QQplot of Residuals.

Value

A list containing the four 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.0.1 Index]