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
)
A vector containing predicted risk scores
A vector containing dichotomized risk groups
A vector containing survival time of the samples
A vector containing survival status of the samples
A vector containing cutoff time points used to dichotomize patients into low- and high-risk groups
Path to the output folder where intermediate and results files will be saved
A string containing base name for image and text files produced by this method
A string specifying main title of the image
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/