bootSample: Draw a bootstrap sample from a given vector of data values

Description Usage Arguments Value Author(s) Examples

Description

Draw one bootstrap sample of a given vector of sample values

Usage

1
  bootSample(x, seed0)

Arguments

x

a numeric vector, sample data.

seed0

a random seed for bootstrap sampling.

Value

Returns a numeric vector which is a bootstrap sample drawn randomly with replacement from and with the same vector length as the sample data x .

Author(s)

Jingqin Luo

Examples

1
2
3
4
5
##generate random data
x <- rnorm(100)

##draw a bootstrap sample
boot.x <- bootSample(100,seed0=12345)

DiagTest3Grp documentation built on April 14, 2017, 5:53 p.m.