XgenCorr2: Generate blockly correlated VAR time series (type 2)

Description Usage Arguments Details Value Examples

View source: R/XgenCorr2.R

Description

Generate vector autoregression time series with 2 blockly correlated structure

Usage

1
XgenCorr2(p.block, x0.block, A.block, t, sigmax)

Arguments

p.block

a list of 2 numbers. Number of covariates for each block. Default is 6, 4 so they form a 10 series X.

x0.block

a list of 2 sublists. Each sublist contains vectors as the initial values

A.block

a list of 2 sublists. Each sublist contains AR coefficient matrices.

t

a number. Length of series, including the initial lags.

sigmax

a number. Standard deviation of noise of x.

Details

This function is based on XgenSimple. 2 blocks, hence need specification for each block, and arguments p.block, x0.block, A.block should have length of 2. It is recommended to use coef.mat to generate the AR coefficient matrices.

Value

a matrix

bigX

The combined matrix of 2 individual submatrices

Examples

1
# see example in XgenCorr().

yymmhaha/PackPaper1 documentation built on May 24, 2019, 8:55 a.m.