View source: R/survivalByQuantile.R
survivalByQuantile | R Documentation |
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.
survivalByQuantile(input.var, input.mat, surv.dat, percentiles = seq(.01,.99,0.01))
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 |
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
##---- 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) { }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.