setCGsurvival: get clinical data from patients with specific data about...

Description Usage Arguments Details Value Examples

View source: R/CGDS_Sets.R

Description

Imports: cgdsr, survival, survminer

Usage

1
setCGsurvival(clinic0, gene = NA, percsplit = 2, percs = NA, splitByCol = NA)

Arguments

gene

character, gene of interest which had to be one of the genes specified in the setCGclinic() function. If you want to split only by genotype, use the splitByCol.

percsplit

integer, how many percentiles are calculated? automactically controls what percentiles are calculated (2: 0th,50th; 3: 0th,33th,66th; 4: 0th,25th,50th,75th)

percs

numbers, which percentiles should be displayed in the survival plot (e.g. 0, 50, 33, 90, etc.)

splitByCol

character, a column name by which the groups should be split (in addition to the gene), e.g. whether or not another gene is mutated

clinic

output from the setCGclinic() function

Details

uses the OS_MONTHS column of the clinic-data.frame to calculate survival

Value

list with 3 items: [[1]] a survival ggplot, [[2]] the extended clinic data.frame, [[3]] a summary, [[4]] the p value

Examples

1
2
3
4
cgds <- setCGbase()
study <- setCGstudy(cgds, 5)
clinic <- setCGclinic(cgds, study, 2, 1, c("ACTA1","HOXA9"))
survival <- setCGsurvival(clinic, "HOXA9")

Solatar/setR documentation built on Dec. 5, 2020, 10:50 p.m.