bootstrap.ranked.list | R Documentation |
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.
## S3 method for class 'ranked.list'
bootstrap(object, nboot, parallel = FALSE, progress = "text", ...)
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. |
An S3 object of class "bootstrap.list" to represent a bootstrapped, ranked assessment data set.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.