genBootIndeces {bootSVD}R Documentation

Generate a random set of bootstrap resampling indeces

Description

Let nn be the original sample size, pp be the number of measurements per subject, and BB be the number of bootstrap samples. genBootIndeces generates a (BB by nn) matrix containing BB indexing vectors that can be used to create BB bootstrap samples, each of size nn.

Usage

genBootIndeces(B, n)

Arguments

B

number of desired bootstrap samples

n

size of original sample from which we'll be resampling.

Value

A (BB by nn) matrix of bootstrap indeces. Let bInds denote the output of getBootIndeces, and Y denote the original (pp by nn) sample. Then Y[,bInds[b,]] is the bthb^{th} bootstrap sample.

Examples

bInds<-genBootIndeces(B=50,n=200)

[Package bootSVD version 1.1 Index]