cutGroups: split survival data into High and Low groups based on cutoff...

View source: R/functions.R

cutGroupsR Documentation

split survival data into High and Low groups based on cutoff value and scores/expression values

Description

split survival data into High and Low groups based on cutoff value and scores/expression values

Usage

cutGroups(os, out)

Arguments

os

tibble with columns: samples, OS values, and Vital.Status

out

output from mCut or mSet. It contains the cutoff threshold and either GSEA scores ("scores") or Gene Expression ("geneExp") values for each sample

Value

the os"group" column with samples split into High and Low groups

Examples

os = dplyr::tibble(sample = letters[1:10], OS = 10:19, Vital.Status = c(rep("Alive",8),rep("Dead",2)))
out = list("cutoff" = 0.44, "scores" = rnorm(10))
os["group"] = cut(os,out)
os

hmumme/survivalHelp documentation built on June 6, 2022, 9:15 p.m.