CreateBlockMatrix: Creates Block Diagonal Correlation Matrix

Description Usage Arguments Value

View source: R/ComparingImpMethods.R

Description

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

Usage

1
2
3
4
5
6
7
CreateBlockMatrix(
  num_of_metabos,
  low_val,
  high_val,
  diag_val,
  size_of_block = 10
)

Arguments

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

Value

Block diagonal matrix of dimension num_of_metabo


jordanaron22/ImputingMetabolites documentation built on Dec. 21, 2021, 2:18 a.m.