Ab_multinom {multinomineq} | R Documentation |
Get Constraints for Product-Multinomial Probabilities
Description
Get or add inequality constraints (or vertices) to ensure that multinomial probabilities are positive and sum to one for all choice options within each item type.
Usage
Ab_multinom(options, A = NULL, b = NULL, nonneg = FALSE)
Arguments
options |
number of observable categories/probabilities for each item
type/multinomial distribution, e.g., |
A |
a matrix defining the convex polytope via |
b |
a vector of the same length as the number of rows of |
nonneg |
whether to add constraints that probabilities must be nonnegative |
Details
If A
and b
are provided, the constraints are added to these inequality constraints.
See Also
Examples
# three binary and two ternary choices:
options <- c(2, 2, 2, 3, 3)
Ab_multinom(options)
Ab_multinom(options, nonneg = TRUE)