retrieveBootstrapSample: Construct the bootstrap data series from wavelet coefficients

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/retrieveBootstrapSample.R

Description

Use the wavelet coefficients from the selected WiSE bootstrap model to construct smooth bootstrap series in the original time/space domain. This function may be of little use and creates large array objects within R. The wavelet coefficients are a preferable representation of the data, as they are sparse and contain the signal information.

Usage

1

Arguments

WiSEObj

an object obtained from WiSEBoot. The "periodic" boundary condition for wavelets is required.

Details

The wavethresh package is used to perform the inverse wavelet decomposition of each bootstrap sample of wavelet coefficients.

The bootstrap series will be smoothed to the selected threshold level, J0=j (see WiSEBoot).

Value

BootSample

an array. The rows contain each bootstrap sample – dimension is the R supplied to the original WiSEBoot call. The columns contain the observations in the original time/space domain – dimension is the length of the data series, T. The 3rd dimension corresponds to the data series – If the user supplied a matrix of more than 1 data series, a bootstrap sample is generated for each series, in the order of the data series supplied.

Author(s)

Megan Heyman

References

For an overview of the wavelet methodology used in wavethresh, see "Wavelet Methods for Statistics in R," (Nason, 2008).

See Also

WiSEBoot, wavethresh-package

Examples

1
2
3
4
5
6
7
someData <- rnorm(2^5)

##Bootstrap sample of size 10 is not recommended. For demonstration only.
bootInfo <- WiSEBoot(someData, R=10, J0=2)
bootSeries <- retrieveBootstrapSample(bootInfo)$BootSample

bootSeries[1, , 1] #this is the first bootstrap series

WiSEBoot documentation built on May 30, 2017, 3:32 a.m.