Draws from the posterior of the parameters of the damped trend equation, conditional on the states.
.gibbsStepDT(Y, par, distr, varName)
A Tn x 1
vector.
A 3 x 1
vector with parameters.
A 4 x 3
matrix with prior parameters and box constraints.
A 3 x 1
vector with parameter names in the correct order, i.e.,
mean reversion, autoregressive parameter, variance.
The three parameters are drawn sequentially in a Gibbs procedure. (conditional on the two other parameters).
The parameter \(\omega\) is drawn from a normal posterior which is obtained by conjugancy.
The autoregressive parameter \(\phi\) is drawn via a Metropolis-Hastings step.
The innovation variance is drwan from the Inverse-Gamma distribution which obtained by conjugacy.