multibridge (version 1.1.0)

.computeLengthOfRemainingStick: 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)

Value

stick length

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