fwdglm(formula, family, data, weights, na.action, contrasts = NULL, bsb = NULL, balanced = TRUE, maxit = 50, epsilon = 1e-06, nsamp = 100, trace = TRUE)family for details.NA's. The default is set by the na.action setting of options, and is na.fail if that is unset. The default is na.omit.contrasts.arg of model.matrix.default."best" starting subset is chosen using the function lmsglm with control arguments provided by nsamp.TRUE the proportion of successes on the full dataset is approximately balanced during the forward search algorithm.glm.control for details.glm.control for details.lmsglm. This argument allows to control how many subsets are used in the robust fitting procedure. The choices are: the number of samples (100 by the default) or "all". Note that the algorithm tries to find nsamp good subsets or a maximum of 2*nsamp subsets.TRUE a message is printed for every ten iterations completed during the forward search."fwdglm" with the following components:
lmsglm.TRUE if binary response.summary.fwdglm, plot.fwdglm, fwdlm, fwdsco.
data(cellular)
cellular$TNF <- as.factor(cellular$TNF)
cellular$IFN <- as.factor(cellular$IFN)
mod <- fwdglm(y ~ TNF + IFN, data=cellular, family=poisson(log), nsamp=200)
summary(mod)
## Not run: plot(mod)
plot(mod, 1)
plot(mod, 5)
plot(mod, 6, ylim=c(-3, 20))
plot(mod, 7)
plot(mod, 8)
Run the code above in your browser using DataLab