Learn R Programming

skipTrack (version 0.1.2)

postSij: Compute random draw from full conditional posterior for s_ij in Li algorithm.

Description

This function calculates a random draw from the full conditional posterior distribution for s_ij in the Li algorithm, given the observed values yijs, the parameter pi, the lambda_i value, and the truncation level S.

Usage

postSij(yijs, pii, lambdai, S)

Value

A random draw from the posterior distribution of s_ij.

Arguments

yijs

Vector of observed values for s_ij.

pii

Probability parameter pi.

lambdai

Value of lambda_i.

S

Truncation level.