View source: R/step1_plot_diagnostic.R
step1_plot_diagnostic | R Documentation |
Generate residual diagnostic plots from a step1_down fit.
step1_plot_diagnostic(step1_down_object, bins = 7, residuals = "classic")
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). |
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, Observed Vs Predicted results, Residuals Vs Predicted results and QQplot of Residuals.
A list containing the four ggplot2 plots.
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.