survivalByQuantile: survivalByQuantile

View source: R/survivalByQuantile.R

survivalByQuantileR Documentation

survivalByQuantile

Description

Apply survival (specify type later) analysis on quantiles of threshold ranging from 0.01 to 0.99. Then use generated p-value and its corresponding threshold quantile to create a countinuous plot for choosing a proper threshold.

Usage

survivalByQuantile(input.var, input.mat, surv.dat, percentiles = seq(.01,.99,0.01))

Arguments

input.var

a character object specifying which subject survival analysis is applying to.

input.mat

a data frame containing information about an object to be tested. The sample order must agree with surv.dat's sample order

surv.dat

a data frame containing all survival information. The sample order must agree with input.dat's sample order

percentiles

a list of numeric values specifying all of the percentiles to be tested on

Value

The function will generate a data frame containing hazard ratio, lower bound, upper bound, percentile, cutoff threshold, and p-value. This data frame can then be manipulated for various plots

Examples

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

## The function is currently defined as
function (x)
{
  }

lyz9928/STAA documentation built on April 1, 2022, 12:21 a.m.