Functions to calculate the coefficient(s) of the robust linear regression model from a bootstrapped sample
bootStatResiduals(
residData,
inds,
coefind,
intercept = TRUE,
maxTries = 4L,
control
)bootStatCases(origData, inds, coefind, formula, maxTries = 4L, control)
bootStatFastControl(model)
bootStatFast(origData, inds, control, coefind)
the original data set with the columns fit, resid and the predictor variables instead of the response variable.
the resampled indices.
the index of the coefficient to extract.
if the model includes an intercept term.
the maximum number of tries to increase the maxit control arguments for the S estimator.
either the control object as returned by bootStatFastControl
(for `bootStatFast`) or the
control object used to fit the model(s) with `lmrob`.
the original data set.
the formula to fit the model
The lmrob model
Different approaches for bootstrapping have been implemented. The default "fast and robust bootstrap"
(FRB) proposed by M. Salibian-Barrera, et al. (2002), implemented with bootStatFast
is the
fastest and most resistant to outliers, while the other two bootStatResiduals
and bootStatCases
are standard bootstrap methods, where the residuals resp. the cases are resampled and the model is
fit to this data.
M. Salibian-Barrera, S. Aelst, and G. Willems. Fast and robust bootstrap. Statistical Methods and Applications, 17(1):41-71, 2008.
bootcoefs