plotdiag.deviance.residuals {forsearch} | R Documentation |
Plot Diagnostic Statistics Of Deviance Residuals
Description
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.
Usage
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)
Arguments
forn |
Name of forward search output file |
squared |
TRUE causes residuals to be squared before plotting |
augmented |
TRUE causes graphing of augmented deviance residuals, see Details |
hilos |
Number of observations having high and number having low values of residuals to identify. No low values are identified for squared residual plot |
maintitle |
Main title of plot |
subtitle |
Subtitle of plot |
caption |
Caption of plot |
wmf |
File name of stored plot; omit ".wmf" |
Cairo |
TRUE causes use of Cairo graphics |
printgraph |
TRUE causes graph to print to file and closes device |
legend |
Legend title |
verbose |
If TRUE, indicates beginning and end of function |
Details
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.
Value
Process and plot changes in deviance residuals or squared deviance residuals from forsearch_glm
Author(s)
William R. Fairweather
References
Atkinson, A and M Riani. Robust Diagnostic Regression Analysis, Springer, New York, 2000.