View source: R/runDiagnostics.R
runDiagnostics | R Documentation |
functions to create observed vs fitted and fitted vs scaled pearsons residual plots
runDiagnostics(model, plotting = "b", save = FALSE, label = NULL)
model |
Fitted model object (glm or gam) |
plotting |
Plotting options ( |
save |
( |
label |
Character string indicating an label to be added to the plot when using |
Two plots:
Observed vs Fitted |
Plot of observed vs fitted with concordence correlation and marginal R-squared printed in the plot title. |
Fitted vs scaled Pearsons residuals |
The red line is a locally weighted least squares regression line of all of the residuals. |
# load data
data(ns.data.re)
model<-glm(birds ~ observationhour + as.factor(floodebb) + as.factor(impact),
family='quasipoisson', data=ns.data.re)
runDiagnostics(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.