TwoSSPtrunc | R Documentation |
This function creates ROC curve for survival data from clinical trials and calculates the area under the curve.
TwoSSPtrunc( entry, exit, event, group, area = FALSE, silent = FALSE, CI = FALSE, level = 0.95, B = 1000, xlab = NULL, ylab = NULL, main = NULL, cex.axis = 1.5, cex.lab = 1.5, legend.inset = 0.02, legend.cex = 1.5, lty = c(2, 1, 3), lwd = 1.5 )
entry |
The entry time for the participant that determined left truncation. |
exit |
Time when the event or censoring occurred (must be higher than entry time). |
event |
An indicator vector with values of 1 for individuals who had the event occur or 0 if the participant was censored. |
group |
An indicator vector with values of 1 if the the participant was in the treatment or exposed group and 0 otherwise. |
area |
Logical argument to indicate if user wants an estimate for area under the curve (default is TRUE). |
silent |
Logical argument, FALSE indicates the user wants ROC plots and TRUE indicates no plots only AUC calculations (default is FALSE). |
CI |
Logical argument indicating if user wants bootstrap errors and confidence intervals to be calculated for the curve and AUC. Default is FALSE. |
level |
Numerical argument indicating condifence level for the confidence interval. Default is 0.95. It's ignored if CI=FALSE. |
B |
Number of bootstrap samples to use for confidence interval and error calculations. Default is 1000. It's ignored if CI=FALSE. |
xlab |
String argument for the horizontal axis label of the curve. |
ylab |
String argument for the vertical axis label of the curve. |
main |
String argument for the title of the curve. |
cex.axis |
Optional graphical parameter for magnification of axis annotation. See par for more details. |
cex.lab |
Optional graphical parameter for magnification of x and y labels. See par for more details. |
legend.inset |
Optional graphical parameter controling legend inset. |
legend.cex |
Optional graphical parameter for magnification of a legend's text. |
lty |
Optional graphical parameter to set the type of lines to use. Can be a number or a vector. See par for more details. |
lwd |
Optional graphical parameter for line width relative to the default. See par for more details. |
A plot of the ROC curve and an ROCsurv object containing:
Data frame with the estimated survival curves.
icsurv object from application of EM to the control group data.
icsurv object from application of EM to the treated group data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.