Description Usage Arguments Value Examples
View source: R/buildWeightMatrix.R
Create a simulated weight matrix
1 | buildWeightMatrix(nrow, ncol, prop = 0.5)
|
nrow |
An integer value, the number of patients (in row) |
ncol |
An integer value, the number of clusters (in columns) |
prop |
An numerical value between 0 and 1, the proportion of non-zero coefficient by row, by default 0.5 |
A sparse n
x p
matrix
1 | W <- buildWeightMatrix(10,6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.