wavVarTest(x, wavelet="s8", n.levels=NULL, significance=c(0.1,0.05,0.01), lookup=TRUE, n.realization=10000, n.repetition=3, tolerance=1e-6)wavTransform as output by the wavDWT function, a
corresponding wavBoundary object, or a
numeric vector. In the latter case, wavDWT parameters can be passed to specify the
type of wavelet to use and the number of decomposition levels to perform.lookup is TRUE, this table is
accessed. The table is stored as the matrix object
D.table.critical and is loaded with the package.
Missing table values are calculated using the input arguments:
n.realization, n.repetition
and tolerance.
Default: TRUE.wavTransform or wavBoundary.
Default: the maximum decomposition level that contains at least one interior wavelet coefficient.lookup
is FALSE,
or when lookup
is TRUE and the table is missing
values corresponding to the specified significances. Default: 10000.n.realization
parameter. Default: 3.c(0.1, 0.05, 0.01).1e-6.wavTransform or wavBoundary.
Default: "s8".wavVarTest.
An Inclan-Tiao approximation of critical D-statistics is used for sample
sizes $N >= 128$ while a
Monte Carlo technique is used for
$N < 128$.
For the Monte Carlo technique, the D-statistic for a
Gaussian white noise sequence of length N is calculated. This
process is repeated n.realization times,
forming a distribution of the D-statistic.
The critical values corresponding to the significances
are calculated a total of n.repetition
times, and averaged to form
an approximation to the D-statistic(s).
Because the Monte Carlo study can be both computationally and memory
intensive, it is highly recommended that lookup be set to
TRUE, its default value.
wavVar, wavDWT, D.table.## perform a homogeneity of variance test for a
## DWT decomposition of a long memory process
## realization
homogeneity <- wavVarTest(fdp045)
Run the code above in your browser using DataLab