View source: R/create.sensitivity.plot.R
create.sensitivity.plot | R Documentation |
A method to computer sensitivity, specificity and accuracy at all the survtime cutoff steps provided
create.sensitivity.plot( riskscore = NULL, riskgroup = NULL, survtime = NULL, survstat = NULL, survtime.cutoffs = c(seq(5, 10, 1)), output.directory = ".", file.stem = NULL, main.title = "", resolution = 100 )
riskscore |
A vector containing predicted risk scores |
riskgroup |
A vector containing dichotomized risk groups |
survtime |
A vector containing survival time of the samples |
survstat |
A vector containing survival status of the samples |
survtime.cutoffs |
A vector containing cutoff time points used to dichotomize patients into low- and high-risk groups |
output.directory |
Path to the output folder where intermediate and results files will be saved |
file.stem |
A string containing base name for image and text files produced by this method |
main.title |
A string specifying main title of the image |
resolution |
A numeric value specifying resolution of the tiff image of KM survival curves. Defaults to 100 |
The sensitivity analysis plots are stored under
output.directory
/graphs/. The sensitivity analysis results are stored
under output.directory
/output/
Syed Haider
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.