Learn R Programming

sGBJ (version 0.1.1)

.survival_scores: .survival_scores

Description

Compute the survival score

Usage

.survival_scores(factor_matrix, covariates = NULL, surv)

Value

A list of length 3 with the updated factor_matrix (same as factor_matrix but removing columns for which survival model failed to converge), the Z matrix and the data used to fit survival model.

Arguments

factor_matrix

a n x p data.frame of the expression for the particular gene set of interest being tested

covariates

a matrix nxl of the covariates to adjust. Default is NULL

surv

a Surv object of length n