Draws from the posterior of the parameters of the RAR2 cycle equation, conditional on the states.
.gibbsStepRAR2(Y, parLast, parDistr, varNames)
A list with the draws.
a Tn x 1
vector.
A 3 x 1
vector containing the last draw for amplitude,
mean cycle periodicity, innovation variance (in that order).
A 4 x 3
matrix with prior distribution and box constraints for
the parameters of each variable (the order of the columns is as for parLast). In each
column, the first two entries contain the prior hyperparameters and the last two entries
the upper and lower bound.
A vector with parameter names in the correct order, i.e., amplitude, mean cycle periodicity, variance.
The parameters \(A\) and \(\tau\) are Beta distributed and the variance \(\sigma^2\) is Gamma distributed.
The posterior is not available in closed form, instead it is obtained via an ARMS step.