.gibbsStepRAR2 {RGAP} | R Documentation |
Draws from the posterior of the parameters of the RAR2 cycle equation, conditional on the states.
.gibbsStepRAR2(Y, parLast, parDistr, varNames)
Y |
a |
parLast |
A |
parDistr |
A |
varNames |
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.
A list with the draws.