data.gen.tar2: Generate predictor and response data from TAR2 model.

Description Usage Arguments Value References Examples

View source: R/data_gen_AR.R

Description

Generate predictor and response data from TAR2 model.

Usage

1
data.gen.tar2(nobs, ndim = 9, noise = 0.1)

Arguments

nobs

The data length to be generated.

ndim

The number of potential predictors (default is 9).

noise

The white noise in the data

Value

A list of 2 elements: a vector of response (x), and a matrix of potential predictors (dp) with each column containing one potential predictor.

References

Sharma, A. (2000). Seasonal to interannual rainfall probabilistic forecasts for improved water supply management: Part 1 - A strategy for system predictor identification. Journal of Hydrology, 239(1-4), 232-239.

Examples

1
2
3
# TAR2 model from paper with total 9 dimensions
data.tar2<-data.gen.tar2(500)
plot.ts(cbind(data.tar2$x,data.tar2$dp))

synthesis documentation built on May 3, 2021, 9:07 a.m.