Description Usage Arguments Value Examples
Calculate the matrix constraints
1 | constraints(a, ratio = c("fixed", "sequential"))
|
a |
the matrix |
ratio |
a string specifying the type of ratios used. The default is |
a list with the following elements
cs |
the vector of column sums |
rs |
the vector of row sums without the last element |
p |
the vector of likelihood ratios |
A |
the constraint matrix for sums without the last row |
B |
the constraint matrix for log-likelihood ratios |
1 2 | m <- matrix(1:20, nrow = 5)
constraints(m)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.