Skip to contents

This function returns the currently available random resampling functions.

Usage

listResamplingFunctionNames(x = c("all", "rswor", "rswr"))

Arguments

x

character, whether to return all sampling methods (all) or only the methods using sampling with (rswr) or without (rswor) replacement

Value

A data frame with two columns:

id

the id of the random sampling method, to be used in the function calls

name

the name of the random resampling function

Author

Alessandro Barberis

Examples


listResamplingFunctionNames()
#>                   id                                         name
#> 1              rswor             repeatedSampleWithoutReplacement
#> 2             srswor repeatedSimpleRandomSampleWithoutReplacement
#> 3   stratified_rswor   repeatedStratifiedSampleWithoutReplacement
#> 4     balanced_rswor     repeatedBalancedSampleWithoutReplacement
#> 5        permutation                    repeatedPermutationSample
#> 6             kfolds                       repeatedRandomKm1Folds
#> 7  stratified_kfolds                   repeatedStratifiedKm1Folds
#> 8    balanced_kfolds                     repeatedBalancedKm1Folds
#> 9        leave_p_out                      repeatedLeavePOutSample
#> 10     leave_one_out                    repeatedLeaveOneOutSample
#> 11              rswr                repeatedSampleWithReplacement
#> 12             srswr    repeatedSimpleRandomSampleWithReplacement
#> 13   stratified_rswr      repeatedStratifiedSampleWithReplacement
#> 14     balanced_rswr        repeatedBalancedSampleWithReplacement
#> 15         bootstrap                      repeatedBootstrapSample