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

View source: R/data_gen_AR.R

data.gen.tar2R Documentation

Generate predictor and response data from TAR2 model.

Description

Generate predictor and response data from TAR2 model.

Usage

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

# 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 Nov. 2, 2023, 5:51 p.m.