Description Usage Arguments Value
View source: R/ComparingImpMethods.R
Creates block diagonal correlation matrix of variable size with blocks and diagonal values. Correlation values are drawn from a random uniform distribution between low_val and high_val
1 2 3 4 5 6 7 | CreateBlockMatrix(
num_of_metabos,
low_val,
high_val,
diag_val,
size_of_block = 10
)
|
num_of_metabos |
Number of metabolites (dimension of matrix) |
low_val |
lower bound for block correlation. Correlation is uniform between low_val and high_val |
high_val |
upper bound for block correlation. Correlation is uniform between low_val and high_val |
diag_val |
Diagonal value. Set to 1 if m_0, 0 else |
size_of_block |
Block size. Default is 10. num_of_metabos must be divisible by size_of_block |
Block diagonal matrix of dimension num_of_metabo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.