View source: R/transform_Ab_V.R
Ab_drop_fixed | R Documentation |
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.
Ab_drop_fixed(A, b, options)
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., |
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.