Model diagnostic plots

appraise(model, method = c("direct", "simulate", "normal"),
n_uniform = 10, n_simulate = 50, type = c("deviance", "pearson",
"response"), n_bins = c("sturges", "scott", "fd"), ncol = 2,
level = 0.9, alpha = 0.2, ...)

## Arguments

model a fitted model. Currently only class "gam". character; method used to generate theoretical quantiles. numeric; number of times to randomize uniform quantiles in the direct computation method (method = "direct") for QQ plots. numeric; number of data sets to simulate from the estimated model when using the simulation method (method = "simulate") for QQ plots. character; type of residuals to use. Only "deviance", "response", and "pearson" residuals are allowed. character or numeric; either the number of bins or a string indicating how to calculate the number of bins. numeric; number of columns to draw plots in. See cowplot::plot_grid(). numeric; the coverage level for QQ plot reference intervals. Must be strictly 0 < level < 1. Only used with method = "simulate". numeric; the level of alpha transparency for the QQ plot reference interval when method = "simulate". arguments passed to cowplot::plot_grid(), except for align and axis, which are set internally.

The plots are produced by functions gratia::qq_plot(), gratia::residuals_linpred_plot(), gratia::residuals_hist_plot(), and gratia::observed_fitted_plot().
library(mgcv)#> Loading required package: nlme#> This is mgcv 1.8-27. For overview type 'help("mgcv-package")'.## simulate some data...
appraise(mod)