bootstrap.ranked.list: Performs bootstrapping

View source: R/Bootstrap.R

bootstrap.ranked.listR Documentation

Performs bootstrapping

Description

Performs bootstrapping on a ranked assessment data set and applies the ranking method to each bootstrap sample. One bootstrap sample of a task with n cases consists of n cases randomly drawn with replacement from this task. A total of nboot of these bootstrap samples are drawn.

Usage

## S3 method for class 'ranked.list'
bootstrap(object, nboot, parallel = FALSE, progress = "text", ...)

Arguments

object

The ranked assessment data set.

nboot

The number of bootstrap samples.

parallel

A boolean specifying whether parallel processing should be enabled.

progress

A string specifying the type of progress indication.

...

Further arguments passed to or from other functions.

Value

An S3 object of class "bootstrap.list" to represent a bootstrapped, ranked assessment data set.

Examples


## Not run: 
 # perform bootstrapping with 1000 bootstrap samples using one CPU
 set.seed(1)
 ranking_bootstrapped <- bootstrap(ranking, nboot = 1000)

## End(Not run)

## Not run: 
 # perform bootstrapping using multiple CPUs (here: 8 CPUs)
 library(doParallel)
 registerDoParallel(cores=8)
 set.seed(1)
 ranking_bootstrapped <- bootstrap(ranking, nboot = 1000, parallel = TRUE, progress = "none")
 stopImplicitCluster()

## End(Not run)


wiesenfa/challengeR documentation built on Aug. 25, 2023, 6:43 a.m.