cutoff: cutoff for survival analysis

Description Usage Arguments Value Examples

View source: R/cutoff.R

Description

Desgin three method to identify the cutoff for survival analysis, including median, quartile and Youden index.

Usage

1
cutoff(data, type = "M", ttype = "d", cut = 1,plot=TRUE,file="Rplot")

Arguments

data

The data needs three columns: expression value, survival times and status. The status indicator, normally 0=alive, 1=dead. Other choices are TRUE/FALSE (TRUE = death) or 1/2 (2=death).

type

Type refers to the segmentation threshold of survival analysis, which is divided into three types: median(M), quartile (Q) and Youden index (Y).default type="M".

ttype

This parameter refers to the units of time, days(d), months(m), and years(y).default time='d'.

cut

This parameter is a threshold used when selecting type= "Y". marker values to use as a cut-off for calculation of sensitivity and specificity.

plot

A logical parameter. This parameter is defined to show whether the survival curve is visualized.default plot=TRUE.

file

The survival curve plot file name. The file type is .pdf.

Value

fit

a survfit object.

data

Added a group column for raw data.

Examples

1
2
3
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

onesand1/GRC documentation built on Dec. 22, 2020, 1:38 a.m.