Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

randboot

Bootstrap Resampling


Description

Generate a dataset from a given dataset using sampling with or without replacement.

Usage

randboot(dataset, n, replace = TRUE)

Arguments

dataset

a p x m data matrix.

n

the number of rows of observations to be included in the new dataset.

replace

logical. If replace is TRUE sampling will be with replacement, thus returning a bootstrap replicate.

Details

This function is a simple shortcut for generating a bootstrap sample. It was originally designed for use within the comparison framework, but can be used as a stand-alone function.

Value

The function returns a new n x m matrix. The default is a bootstrap replicate of the orginal data.


apricom

Tools for the a Priori Comparison of Regression Modelling Strategies

v1.0.0
GPL-2
Authors
Romin Pajouheshnia [aut, cre], Wiebe Pestman [aut], Rolf Groenwold [aut]
Initial release
2015-11-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.