Learn R Programming

hwwntest (version 1.3.2)

d00.test: Test for white noise based on the coarsest scale Haar wavelet coefficient of the spectrum.

Description

Computes the coarsest scale Haar wavelet coefficient of the periodogram but directly using a formula based on a particular linear combination of autocorrelation coefficients. Then performs a hypothesis test by comparing the test statistic to a standard normal distribution.

Usage

d00.test(x)

Value

An object of class htest containing the following components.

statistic

The test statistic

p.value

The p-value of the test

method

A test string indicating the method

Arguments

x

The time series you want to test, of arbitrary length.

Author

Delyan Savchev and Guy Nason

References

Nason, G.P. and Savchev, D. (2014) White noise testing using wavelets. Stat, 3, 351-362. tools:::Rd_expr_doi("10.1002/sta4.69")

See Also

compute.rejection,hwwn.test

Examples

Run this code
#
# Test data set
#
x <- rnorm(30)
#
#
answer <- d00.test(x)
#
# My answer was:
#
#	d00 test on acfs
#
#data:  
#= -1.696, p-value = 0.08989

Run the code above in your browser using DataLab