data.gen.ar4: Generate predictor and response data.

View source: R/data_gen.R

data.gen.ar4R Documentation

Generate predictor and response data.

Description

Generate predictor and response data.

Usage

data.gen.ar4(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


# AR4 model from paper with total 9 dimensions
data.ar4 <- data.gen.ar4(500)
stepwise.PIC(data.ar4$x, data.ar4$dp)


NPRED documentation built on Sept. 11, 2024, 5:30 p.m.