.adjustUpperBoundForFreeParameters | R Documentation |
Corrects the upper bound for current parameter. This correction only applies for parameters that are free to vary within the restriction. Then the length of the remaining stick must be based on the largest free parameter value.
.adjustUpperBoundForFreeParameters( theta_mat, k, upper, nr_mult_equal, smaller_values, larger_values, hyp_direction )
theta_mat |
matrix with samples from truncated Dirichlet density |
k |
current parameter index |
upper |
current upper bound |
nr_mult_equal |
vector of multiplicative elements of collapsed parameters |
smaller_values |
index of parameters that are smaller than the current one |
larger_values |
index of parameters that are larger than the current one |
hyp_direction |
specifies whether the imposed inequality constrained imposes an increasing (i.e., 'smaller') or decreasing (i.e., 'larger') trend |
adjusted upper bound
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.