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)
A random draw from the posterior distribution of lambda_i.
Vector of observed values for individual i.
Vector of cycle skip indicators for individual i.
Prior hyperparameter kappa.
Prior hyperparameter gamma.