Ab_drop_fixed {multinomineq} | R Documentation |
Drop fixed columns in the Ab-Representation
Description
Often inequalities refer to all probability parameters of a multinomial distribution.
This function allows to transform the inequalities into the appropriate format
A * x <b
with respect to the free parameters only.
Usage
Ab_drop_fixed(A, b, options)
Arguments
A |
a matrix defining the convex polytope via |
b |
a vector of the same length as the number of rows of |
options |
number of observable categories/probabilities for each item
type/multinomial distribution, e.g., |
Examples
# p1 < p2 < p3 < p4
A4 <- matrix(
c(
1, -1, 0, 0,
0, 1, -1, 0,
0, 0, 1, -1
),
nrow = 3, byrow = TRUE
)
b4 <- c(0, 0, 0)
# drop the fixed column for: p4 = (1-p1-p2-p3)
Ab_drop_fixed(A4, b4, options = c(4))
[Package multinomineq version 0.2.6 Index]