Description Usage Arguments Value Examples
Recover table given column and row sums and given the log ratios
1 2 | recover_table(p, col_sums, row_sums, exclude = NULL, ratio = c("fixed",
"sequential"), ...)
|
p |
the log ratios |
col_sums |
the vector of column sums |
row_sums |
the vector of row sums |
exclude |
the matrix containing the indices of elements that should be excluded. Default is |
ratio |
the type of ratios used. The default is |
... |
additional arguments to nleqlsv |
a list with the following elements
table |
a recovered table |
opt |
a result of |
1 2 3 4 5 | set.seed(10)
m <- matrix(runif(9),3)
cr <- constraints(m)
res <- recover_table(cr$p, colSums(m), rowSums(m))
res$table - m
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.