postLambdai {skipTrack}R Documentation

Compute random draw from full conditional posterior for lambda_i in Li algorithm.

Description

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.

Usage

postLambdai(yij, sij, priorK, priorG)

Arguments

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.

Value

A random draw from the posterior distribution of lambda_i.


[Package skipTrack version 0.1.0 Index]