Learn R Programming

ASV (version 1.1.4)

asv_prior: Compute the logarithm of the prior density for the stochastic volatility models with leverage

Description

This function computes the logarithm of the prior density for stochastic volatility models with leverage (asymmetric stochastic volatility models):

mu~N(mu_0,sigma_0^2), (phi+1)/2~Beta(a_0,b_0), sigma_eta^2~IG(n_0/2,S_0/2), (rho+1)/2~Beta(a_1,b_1).

Usage

asv_prior(Theta_star, vHyper = NULL)

Value

The logarithm of the prior density.

Arguments

Theta_star

a vector of parameters to evaluate the prior density: Theta_star = c(mu, phi, sigma_eta, rho)

vHyper

a vector of hyper-parameters to evaluate the prior density: vHyper = c(mu_0, sigma_0, a_0, b_0, a_1, b_1, n_0, S_0)

Author

Yasuhiro Omori

Examples

Run this code
vhyper     = c(0, 1, 20, 1.5, 1, 1, 5, 0.05)
theta_star = c(0, 0.97, 0.3, -0.5) 
asv_prior(theta_star, vhyper)

Run the code above in your browser using DataLab