postPii | R Documentation |
This performs a Metropolis-Hastings draw for pi_i, assuming s_ij follows a truncated geometric distribution with parameters pi_i and S. The proposal distribution for pi_i is Beta(alpha, beta).
postPii(sij, currentPii, priorA, priorB, S)
sij |
Vector of cycle skip indicators for individual i |
currentPii |
Current value of pi_i |
priorA |
Hyperparameter alpha. |
priorB |
Hyperparameter beta. |
S |
Maximum number of skips allowed in algorithm |
Draw for pi_i, repeated for the number of observations from individual i
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.