WiSEHypothesisTest(X, Y, J0, R=100, popParam = c(0, 1), XParam = c(NA, NA),
YParam = c(NA, NA), TauSq = "log", bootDistn = "normal",
wavFam = "DaubLeAsymm", wavFil = 8, wavBC = "periodic",
plot = TRUE, ...)length(X)=length(Y). The vector should contain only numeric values and be non-missing. See the Details section for a description length(X)=length(Y). The vector should contain only numeric values and be non-missing. See the Details section for a description X. Allowed input is a vector of length 2 which is completely missing or contains numeric entries. The first entry of the vector is the intercept for X and the second entry is theY. Allowed input is a vector of length 2 which is completely missing or contains numeric entries. The first entry of the vector is the intercept for Y and the second entry is the"log", "log10", "sqrt", "1", or "2/5". The scale parameter is related to the length of the data series. For example, "log" implies a value of the scale paramet"normal", "uniform", "laplace", "lognormal", "gumbel", "exponential", "t5", "t8", and "t1"DaubLeAsymm" and "DaubExPhase" -- Daubechies Least Asymmetric and Daubechies Extremal Phase. This is the family used within the wavethresh package.wavFam="DaubLeAsymm" or integers between 1 and 10 when wavFam="DaubExPhase". These correspond to the number of vanishing moments of the wavelet. This is "periodic" and "symmetric". This is the bc used within the wavethresh package.TRUE, a plot of the bootstrap sample of the linear parameters (generated under the null hypothesis) and the estimated parameters from the data is shown.plot, plot.default.R.R.Y data. In the notation from Details, $g_{yj}$. This is a vector of length $2^(J0 + 1) - 1$. The first entry is the level 0 coefficient, ..., final entries are the level $J0$ coefficients.X data. In the notation from Details, $g_{xj}$. This is a vector of length $2^(J0 + 1) - 1$. The first entry is the level 0 coefficient, ..., final entries are the level $J0$ coefficients.Y bootstrap sample. In the notation from Details, $g*_{yj}$. This is a matrix with R rows and $2^{J0 + 1} - 1$ columns which correspond to the wavelet coefficients. The first column is the level 0 filter coefficient, ..., final columns are the level $J0$ filter coefficients.X bootstrap sample. In the notation from Details, $g*_{xj}$. This is a matrix with R rows and $2^{J0 + 1} - 1$ columns which correspond to the wavelet coefficients. The first column is the level 0 filter coefficient, ..., final columns are the level $J0$ filter coefficients.popParam=c(m, n).
The WiSE bootstrap sample is created under the null hypothesis for a set threshold, J0=j. The sampling scheme is described in detail in Braverman et al. The distributon of the bootstrap sample of the parameters allows for calculation of a p-value associated with the null hypothesis.
Some notation to aid in understanding outputs:
1) $a, b$: estimates of $\alpha, \beta$ from the data wavelet coefficients
2) $a*, b*$: estimates of $\alpha, \beta$ from the bootstrap wavelet coefficients
3) $g_{xj}, g_{yj}$: estimates of $\gamma_x, \gamma_y$ from the data at the threshold J0=j
4) $g*_{xj}, g*_{yj}$: estimates of $\gamma_x, \gamma_y$ from the bootstrap sample at the threshold J0=jpadMatrix, padVector, wavethresh-package##Test whether \alpha=0 and \beta=1 for AIRS and IPSL Run 1 at 60E
## R=10 bootstrap samples is not recommended. For demonstration only.
data(CM20N20S60E)
padData <- padMatrix(CM20N20S60E)
hypTest <- WiSEHypothesisTest(padData$xPad[,1], padData$xPad[,2], J0=5, R=10,
XParam=padData$linearParam[,1], YParam=padData$linearParam[,2],
plot=TRUE)Run the code above in your browser using DataLab