genBootIndeces {bootSVD} | R Documentation |
Generate a random set of bootstrap resampling indeces
Description
Let be the original sample size,
be the number of measurements per subject, and
be the number of bootstrap samples.
genBootIndeces
generates a ( by
) matrix containing
indexing vectors that can be used to create
bootstrap samples, each of size
.
Usage
genBootIndeces(B, n)
Arguments
B |
number of desired bootstrap samples |
n |
size of original sample from which we'll be resampling. |
Value
A ( by
) matrix of bootstrap indeces. Let
bInds
denote the output of getBootIndeces
, and Y
denote the original ( by
) sample. Then
Y[,bInds[b,]]
is the bootstrap sample.
Examples
bInds<-genBootIndeces(B=50,n=200)
[Package bootSVD version 1.1 Index]