Description Usage Arguments Value
Convert a frequency table (non-negative numeric matrix) to a matrix of the same dimensions containing at each position $(i,j)$ the value $1$ if the selected test statistic meets the provided cutoff threshold and $0$ otherwise. In the case of a chi-squared test, an entry in the result is 1 only if the corresponding entry in the input matrix was greater than expected.
1 2 3 4 5 | binarize_matrix(x, stat, thres, test = NULL)
matrix_chisq(x)
matrix_ratio(x)
|
x |
Numeric non-negative matrix. |
stat |
Character string. The test statistic, either |
thres |
Numeric. The cutoff threshold for the test statistic. |
test |
Function taking one argument |
Binary numeric matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.