.computeLengthOfRemainingStick {multibridge}R 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


[Package multibridge version 1.2.0 Index]