Plot output from forsearch_glm to show change in deviance residuals or augmented deviance residuals, either of which can be squared, as the number of observations in the forward search procedure increases. Save plot in folder containing working directory.
plotdiag.deviance.residuals(forn, squared = FALSE, augmented=TRUE, hilos = c(1, 0),
maintitle="Put main title here", subtitle="Put subtitle here", caption="Put caption here",
wmf= "Put_graph_title_here", Cairo=TRUE,printgraph=TRUE,
legend = "Dummy legend name", verbose = TRUE)Process and plot changes in deviance residuals or squared deviance residuals from forsearch_glm
Name of forward search output file
TRUE causes residuals to be squared before plotting
TRUE causes graphing of augmented deviance residuals, see Details
Number of observations having high and number having low values of residuals to identify. No low values are identified for squared residual plot
Main title of plot
Subtitle of plot
Caption of plot
File name of stored plot; omit ".wmf"
TRUE causes use of Cairo graphics
TRUE causes graph to print to file and closes device
Legend title
If TRUE, indicates beginning and end of function
William R. Fairweather
We reserve the use of the term 'Deviance residuals' to deviance residuals of the observations that were used to create the model fit, and use the term 'Augmented deviance residuals' to refer to deviance residuals of all available observations. The latter are created by predicting the fit of the model to all observations.
Atkinson, A and M Riani. Robust Diagnostic Regression Analysis, Springer, New York, 2000.