.computeLengthOfRemainingStick | R Documentation |
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.
.computeLengthOfRemainingStick(theta_mat, k, hyp_direction)
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 |
stick length
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.