Vbeta: Update covariance matrix of parameters

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

This function computes the covariance matrix of the parameters, given a prior parameter precision matrix and an estimate of the prior variance.

Usage

1
Vbeta(prior_vbeta_inv, var_inv, Z)

Arguments

prior_vbeta_inv

the prior precision matrix (inverse of covariance).

var_inv

an estimated precision matrix for the model (Σ).

Z

the model matrix, as per Koop and Korobilis (2012).

Details

The model uses the following formula for updating the previous value:

V_β = ≤ft( V_{β_0}^{-1} + ∑_{t=1}^{τ} Z_{t}^{T} \hat{Σ}^{-1} Z_{t} \right)^{-1}

Where V_{ β_{0} }^{-1} is the inverse of the prior coefficient variance, Z_{t} is the model matrix at time t, and \hat{Σ}^{-1} is an estimated precision matrix.

Value

The covariance matrix of the parameters.


gamalamboy/stresstest documentation built on May 17, 2019, 1:33 p.m.