.gibbsStepRAR2 {RGAP} | R Documentation |
Draws from the posterior of the parameters of the RAR2 cycle equation, conditional on the states.
Description
Draws from the posterior of the parameters of the RAR2 cycle equation, conditional on the states.
Usage
.gibbsStepRAR2(Y, parLast, parDistr, varNames)
Arguments
Y |
a |
parLast |
A |
parDistr |
A |
varNames |
A vector with parameter names in the correct order, i.e., amplitude, mean cycle periodicity, variance. |
Details
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.
Value
A list with the draws.