constraints: Calculate the matrix constraints

Description Usage Arguments Value Examples

Description

Calculate the matrix constraints

Usage

1
constraints(a, ratio = c("fixed", "sequential"))

Arguments

a

the matrix

ratio

a string specifying the type of ratios used. The default is "fixed" for ratios with fixed first row and column. It is also possible to use "sequential" ratios

Value

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

Examples

1
2
m <- matrix(1:20, nrow = 5)
constraints(m)

mpiktas/retacoro documentation built on May 23, 2019, 6:32 a.m.