functions to create observed vs fitted and fitted vs scaled pearsons residual plots
Source:R/runDiagnostics.R
runDiagnostics.Rdfunctions to create observed vs fitted and fitted vs scaled pearsons residual plots
Arguments
- model
Fitted model object (glm or gam)
- plotting
Plotting options (
default='b').b: returns both plots,f: returns observed vs fitted only andr: returns scale pearsons residual plot only.- save
(
default=FALSE). Logical stating whether plot should be saved into working directory. Seelabelto change directory.- label
Character string indicating an label to be added to the plot when using
save = TRUE. Can also include a pathway to a directory of choice.