getR2: getR2

Description Usage Arguments Details Value Author(s)

View source: R/getR2.R

Description

Get R-squared or pseudo R-squared

Usage

1
getR2(x, z, model)

Arguments

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'.

Details

Obtain R-squared or pseudo R-squared between phenotypic variable and expression value of each gene, which will be used in GuidedSparseKmeans.R2out function.

Value

A vector

R2.per

R-squared or pseudo R-squared between phenotypic variable and expression value of each gene, a vector.

Author(s)

Lingsong Meng


LingsongMeng/GuidedSparseKmeans documentation built on May 11, 2020, 12:29 a.m.