Usage
lmsglm(x, y, family, weights, offset, n.samples = 100, max.samples = 200, epsilon = 1e-04, maxit = 50, trace = FALSE)
Arguments
x
a matrix or data frame containing the explanatory variables.
y
the response: a vector of length the number of rows of x
.
family
a description of the error distribution and link function to be used in the model. See family
for details.
weights
an optional vector of weights to be used in the fitting process.
offset
optional, a priori known component to be included in the linear predictor during fitting.
n.samples
number of good subsets to fit. It can be a numeric value or "all"
.
max.samples
maximal number of subsets to fit. By default is set to twice n.samples
.
epsilon
positive convergence tolerance epsilon. See glm.control
for details.
maxit
integer giving the maximal number of IWLS iterations. See glm.control
for details.
trace
logical, if TRUE
a message is printed for every ten iterations completed during the search.