View source: R/transform_Ab_V.R
Ab_multinom | R Documentation |
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.
Ab_multinom(options, A = NULL, b = NULL, nonneg = FALSE)
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 |
If A
and b
are provided, the constraints are added to these inequality constraints.
add_fixed
# three binary and two ternary choices: options <- c(2, 2, 2, 3, 3) Ab_multinom(options) Ab_multinom(options, nonneg = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.