Description Usage Arguments Value References Examples
Generate a matrix of gene expressions in the presence of gene pathways, we first produce the matrix by X.pathway(Emura et al. 2012), then we change each value to 1 ~ 3 depend on the quantile and randomly replace a element to 4 in the last p-(q1+q2) column for each row.
1 | X.pathway_discrete.imbalanced(n, p, q1, q2, rho1 = 0.5, rho2 = 0.5)
|
n |
:the number of individuals (sample size) |
p |
:the number of genes |
q1 |
:the number of genes in the first pathway |
q2 |
:the number of genes in the second pathway |
rho1 |
:the correlation coefficient for the first pathway |
rho2 |
:the correlation coefficient for the second pathway |
X n by p matrix of gene expressions
Emura T, Chen YH, Chen HY (2012). Survival Prediction Based on Compound Covariate under Cox Proportional Hazard Models. PLoS ONE 7(10): e47627. doi:10.1371/journal.pone.0047627
1 2 | ## generate 6 gene expressions from 10 individuals
X.pathway_discrete.imbalanced(n=10,p=6,q1=2,q2=2,rho1=0.5,rho2=0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.