dot-computeLengthOfRemainingStick: Computes Length Of Remaining Stick

.computeLengthOfRemainingStickR Documentation

Computes Length Of Remaining Stick

Description

When applying the probit transformation on the Dirichlet samples, this function is used as part of the stick-breaking algorithm. It computes the length of the remaining stick when the current element is broken off.

Usage

.computeLengthOfRemainingStick(theta_mat, k, hyp_direction)

Arguments

theta_mat

matrix with samples from truncated Dirichlet density

k

current parameter index

hyp_direction

specifies whether the imposed inequality constrained imposes an increasing (i.e., 'smaller') or decreasing (i.e., 'larger') trend

Value

stick length


multibridge documentation built on Nov. 1, 2022, 5:05 p.m.