crt_covm3: Create the covariance matrix for each component of the normal...

Description Usage Arguments Examples

Description

This function helps to create the 3 covariance matrix (2-by-2) for each component of the normal mixture.

Usage

1
crt_covm3(sds, rhos)

Arguments

sds

The standard deviations for each of the 3 normal components. sd should be a 2-by-3 matrix, each row are standard deviations for the same components.

rhos

The Pearson correlation between expression data sources for each component. Rho should be a vector with a length of 3. According to the idr3c model, the first element should be 0 under most conditions.

Examples

1
2
3
4
sds = cbind(c(1,1),c(1,1),c(1,1))
rhos = c(0,0.84,0.84)
covms = crt_covm3(sds=sds,rhos=rhos)
print(covms)

Yafei611/idr3c documentation built on May 9, 2019, 11:07 p.m.