Description Usage Arguments Details Value Author(s)
Get R-squared or pseudo R-squared
1 | getR2(x, z, model)
|
x |
Gene expression matrix, n*p (rows for subjects and columns for genes). |
z |
One phenotypic variable from clinical dataset, a vector. |
model |
The model fitted to obtain R2, please select model from 'linear', 'logit', 'exp', 'polr','cox'. |
Obtain R-squared or pseudo R-squared between phenotypic variable and expression value of each gene, which will be used in GuidedSparseKmeans.R2out function.
A vector
R2.per |
R-squared or pseudo R-squared between phenotypic variable and expression value of each gene, a vector. |
Lingsong Meng
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.