Description Usage Arguments Value Examples
This function generates a matrix with block-wise customized structure.
| 1 | generate.Sigma(m.gene, block.size, rho, dd=NULL, str.type="interchangeable")
 | 
| m.gene | number of genes in the covariance matrix. | 
| block.size | vector of sizes (i.e. number of genes) for each block. Size can not be 0, at least 1. | 
| rho | vector of correlation coefficients (i.e. edge strength) in each block. The vector should have the same length as  | 
| dd | diagnal entries of the weight matrix. It should have length equal to  | 
| str.type | types of block structure. Options:  | 
A list with the following components:
| Sigma | a covariance matrix with customized structure. | 
| true.str | true structure in generated  | 
| 1 2 3 4 5 6 | ## a correlation matrix with three designed blocks
Sigma.str1 <- generate.Sigma(m.gene=35, block.size=c(5,10,15), rho=c(0.9,0.8,0.7),
                             str.type=c("interchangeable","decaying","star"))
                             
## no structure, i.e. an identity matrix
Sigma.str2 <- generate.Sigma(m.gene=10, block.size=1, rho=0)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.