This function plots the results of a forward search analysis in generalized linear models.
# S3 method for fwdglm
plot(x, which.plots = 1:11, squared = FALSE, scaled =FALSE,
ylim = NULL, xlim = NULL, th.Res = 4, th.Lev = 0.25, sig.Tst =2.58,
sig.score = 1.96, plot.pf = FALSE, labels.in.plot = TRUE, ...)
a "fwdglm"
object.
select which plots to draw, by default all. Each graph is addressed by an integer:
leverages
maximum deviance residuals
minimum deviance residuals
coefficients
t statistics, i.e. coef.est/SE(coef.est)
likelihood matrix: deviance, deviance explained, pseudo R-squared, dispersion parameter
score statistic for the goodness of link test
forward Cook's distances
modified forward Cook's distances
weights used at each step of the forward search for the units included
logical, if TRUE
plots squared deviance residuals.
logical, if TRUE
plots scaled coefficient estimates.
a two component vector for the min and max of the y axis.
a two component vector for the min and max of the x axis.
numerical, a threshold for labelling the residuals.
numerical, a threshold for labelling the leverages.
numerical, a value used to draw the confidence interval on the plot of the t statistics.
numerical, a value used to draw the confidence interval on the plot of the score test statistic.
logical, in case of binary response if TRUE
graphs contain all the step of the forward search, otherwise only those in which there is no perfect fit.
logical, if TRUE
units are labelled in the plots when required.
further arguments passed to or from other methods.
Originally written for S-Plus by:
Kjell Konis kkonis@insightful.com and Marco Riani mriani@unipr.it
Ported to R by Luca Scrucca luca@stat.unipg.it
Atkinson, A.C. and Riani, M. (2000), Robust Diagnostic Regression Analysis, First Edition. New York: Springer, Chapter 6.
fwdglm
, fwdlm
, fwdsco
.
if (FALSE) {
data(cellular)
mod <- fwdglm(y ~ as.factor(TNF) + as.factor(IFN), data=cellular,
family=poisson(log), nsamp=200)
summary(mod)
plot(mod)
}
Run the code above in your browser using DataLab