postLambdai | R Documentation |
This function calculates a random draw from the full conditional posterior distribution for lambda_i in the Li algorithm, given the observed values y_ij, the indicators s_ij, and the prior hyperparameters priorK and priorG.
postLambdai(yij, sij, priorK, priorG)
yij |
Vector of observed values for individual i. |
sij |
Vector of cycle skip indicators for individual i. |
priorK |
Prior hyperparameter kappa. |
priorG |
Prior hyperparameter gamma. |
A random draw from the posterior distribution of lambda_i.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.