.adjustUpperBoundForFreeParameters {multibridge}R Documentation

Adjusts Upper Bound For Free Parameters

Description

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.

Usage

.adjustUpperBoundForFreeParameters(
  theta_mat,
  k,
  upper,
  nr_mult_equal,
  smaller_values,
  larger_values,
  hyp_direction
)

Arguments

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

Value

adjusted upper bound


[Package multibridge version 1.2.0 Index]