Learn R Programming

RBaM (version 1.1.1)

SPD_getVARproperties: Properties of VAR parameters

Description

This function computes the properties of VAR parameters (prior means, sds and correlation) given the prior for period 1 and the prior for incremental changes.

Usage

SPD_getVARproperties(p1Par, deltaPar, nPeriod)

Value

A list with the following components:

mean

numeric vector of length nPeriod, prior means.

sd

numeric vector of length nPeriod, prior standard deviations.

cor

matrix of dim nPeriod*nPeriod, prior correlation matrix.

Arguments

p1Par

numeric vector of length 2, parameters of the prior for period 1.

deltaPar

numeric vector of length 2, parameters of the prior for incremental changes.

nPeriod

integer, number of periods.

Examples

Run this code
res=SPD_getVARproperties(p1Par=c(2,0.1),deltaPar=c(0,0.3),nPeriod=25)
image(res$cor)

Run the code above in your browser using DataLab