FunBootBand
band.Rd
Creates Functional Bootstraped (statistical) Bands. The 'band' function rests on two basic ASSUMPTIONS:
- Assumption 1 (A1): All curves are of equal length. If necessary, any interpolation must be performed externally.
- Assumption 2 (A2): Curves originate from stationary processes.
If these assumptions are not met, the function will return an error (A1) or result in potentially erroneous outputs (A2).
Arguments
- data
A data frame of dimensions [t, n], where 'n' is the number of curves and 't' is the length of the curves. All curves need to be of equal length.
- type
Type of the statistical band (c("confidence", "prediction")).
- alpha
Desired type I error probability.
- iid
Dependency of the curves (iid = c(TRUE, FALSE)). Setting iid=TRUE runs an ordinary (naive) bootstrap, where all curves are assumed to be independent. When setting iid=FALSE, a two-stage bootstrap is run, where curve clusters (comprising all of their curves) are resampled with replacement in the initial stage, and one curve per cluster is sampled without replacement in the second stage. If iid is set to FALSE, curves are assumed to be nested in curve clusters. The cluster structure needs to be specified in the colnames of the data frame using letters to indicate clusters (see 'Format').
- k.coef
Number of Fourier coefficients (e.g., k = 50). Determines the smoothness of the curve approximation.
- B
Number of bootstrap iterations (e.g., B = 1000). Default is 400.