data.gen.ar9: Generate predictor and response data from AR9 model.

View source: R/data_gen_AR.R

data.gen.ar9R Documentation

Generate predictor and response data from AR9 model.

Description

Generate predictor and response data from AR9 model.

Usage

data.gen.ar9(nobs, ndim = 9)

Arguments

nobs

The data length to be generated.

ndim

The number of potential predictors (default is 9).

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.

Examples

# AR9 model from paper with total 9 dimensions
data.ar9<-data.gen.ar9(500)
plot.ts(cbind(data.ar9$x,data.ar9$dp))


synthesis documentation built on Nov. 2, 2023, 5:51 p.m.