Description Usage Arguments Value Author(s) See Also Examples
This function computes a set of indicies for bootstrap resampling. It can be unconstrained or bootstrap within a group design.
1 | boot.samples(DATA, DESIGN = NULL, constrained = FALSE)
|
DATA |
The original data matrix to be bootstrapped. Rows will be bootstrapped and are assumed to be observations. |
DESIGN |
A design matrix (in disjunctive coding). Only used if |
constrained |
a boolean. If TRUE, bootstrap resampling will occur within groups as designated by the |
a set of indicies to be used to be used as the bootstrap resampled indices.
Derek Beaton
boot.compute.fj
and boot.ratio.test
1 2 3 4 5 | data(ep.iris)
unconstrained.indices <- boot.samples(ep.iris$data)
#ep.iris$data[unconstrained.indices,]
constrained.indices <- boot.samples(ep.iris$data,DESIGN=ep.iris$design,constrained=TRUE)
#ep.iris$data[constrained.indices,]
|
Loading required package: prettyGraphs
Loading required package: ExPosition
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.