Learn R Programming

dsp (version 1.2.0)

sampleEvolParams: Sampler evolution error variance parameters

Description

Compute one draw of evolution error variance parameters under the various options:

  • dynamic horseshoe prior ('DHS');

  • horseshoe prior ('HS');

  • normal-inverse-gamma prior ('NIG').

Usage

sampleEvolParams(
  omega,
  evolParams,
  sigma_e = 1,
  evol_error = "DHS",
  loc = NULL
)

Value

List of relevant components in evolParams: sigma_wt, the T x p matrix of evolution standard deviations, and additional parameters associated with the DHS and HS priors.

Arguments

omega

T x p matrix of evolution errors

evolParams

list of parameters pertaining to each evol_error type to be updated

sigma_e

the observation error standard deviation; for (optional) scaling purposes

evol_error

the evolution error distribution; must be one of 'DHS' (dynamic horseshoe prior), 'HS' (horseshoe prior), or 'NIG' (normal-inverse-gamma prior)

loc

list of the row and column indices to fill in a band-sparse matrix