Learn R Programming

ipred (version 0.6-14)

bootest: Bootstrap Error Rate Estimators

Description

Those functions are low-level functions used by errorest and are normally not called by users.

Usage

## S3 method for class 'factor':
bootest(y, formula, data, model, predict, nboot=25, bc632plus=FALSE, \dots)

Arguments

y
the response variable, either of class factor (classification), numeric (regression) or Surv (survival).
formula
a formula object.
data
data frame of predictors and response described in formula.
model
a function implementing the predictive model to be evaluated. The function model can either return an object representing a fitted model or a function with argument newdata which returns predicted va
predict
a function with arguments object and newdata only which predicts the status of the observations in newdata based on the fitted model in object.
nboot
number of bootstrap replications to be used.
bc632plus
logical. Should the bias corrected version of misclassification error be computed?
...
additional arguments to model.

Details

See errorest.