Learn R Programming

tswge (version 2.1.0)

wbg.boot.wge: Woodward-Bottone-Gray test for trend

Description

Performs the Woodward-Bottone-Gray (WBG) bootstrap-based test for a linear trend in a time series realization.)

Usage

wbg.boot.wge(x,nb=399,alpha=.05,pvalue=TRUE,sn=0)

Value

p

AR order used for the bootstrap simulations

phi

The AR coefficients of the AR model fit to data

pv

The p-value of the test

Arguments

x

Realization

nb

The number of Bootstrap replications (default is 399)

alpha

The significance level of the test (default is .05)

pvalue

Logical variable. TRUE(default) prints out the p-value of the test.

sn

Sets the seed for the simulations (default = 0))

Author

Wayne Woodward

References

"Applied Time Series Analysis with R, 2nd edition" by Woodward, Gray, and Elliott

Examples

Run this code
data(global.temp)
          wbg.boot.wge(global.temp)

Run the code above in your browser using DataLab