buildWeightMatrix: Create a simulated weight matrix

Description Usage Arguments Value Examples

View source: R/buildWeightMatrix.R

Description

Create a simulated weight matrix

Usage

1
buildWeightMatrix(nrow, ncol, prop = 0.5)

Arguments

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

Value

A sparse n x p matrix

Examples

1
W <- buildWeightMatrix(10,6)

CNRGH/pintmf documentation built on Feb. 23, 2022, 12:02 a.m.