bootstrap {structToolbox}R Documentation

Bootstrap class

Description

Applies bootstrapping to a model or model_seq(). Any output from the model can be 'collected' over all bootstrap repetitions for further analysis.

Usage

bootstrap(number_of_iterations = 100, collect, ...)

Arguments

number_of_iterations

The number of bootstrap iterations to run

collect

The name of model output to collect over all iterations

...

additional slots and values passed to struct_class

Value

A struct iterator object

Examples

D = iris_DatasetExperiment()
I = bootstrap(number_of_iterations = 5, collect='vip') *
    (mean_centre() + PLSDA(factor_name = 'Species'))
I = run(I,D,balanced_accuracy())


[Package structToolbox version 1.0.1 Index]