Ab_max | R Documentation |
Constructs the matrix A
and vector b
of the Ab-representation
A*x < b
for common inequality constraints such as "the probability j is
larger than all others (Ab_max
)" or "the probabilities are ordered
(Ab_monotonicity
)").
Ab_max( which_max, options, exclude = c(), exclude_fixed = FALSE, drop_fixed = TRUE )
which_max |
vector of indices refering to probabilities that are
assumed to be larger than the remaining probabilities
(e.g., |
options |
number of observable categories/probabilities for each item
type/multinomial distribution, e.g., |
exclude |
vector of indices refering to probabilities that are excluded from the construction of the order constraints (including the fixed probabilities). |
exclude_fixed |
whether to exclude the fixed probabilities (i.e., the
last probability within each multinomial) from the construction of the
order constraints. For example, if |
drop_fixed |
whether to drop columns of |
a list with the matrix A
and the vectors b
and options
# Example 1: Multinomial with 5 categories # Hypothesis: p1 is larger than p2,p3,p4,p5 Ab_max(which_max = 1, options = 5) # Example 2: Four binomial probabilities # Hypothesis: p1 is larger than p2,p3,p4 Ab_max(which_max = 1, options = c(2, 2, 2, 2), exclude_fixed = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.