TwoSSPicens | R Documentation |
This function creates ROC curve for survival data from clinical trials and calculates the area under the curve.
TwoSSPicens( left, right, group, iterations, end_follow, checkPH = FALSE, checkPO = FALSE, xlab = NULL, ylab = NULL, main = NULL, cex.axis = 1.5, cex.lab = 1.5, legend.inset = 0.02, legend.cex = 1.5, lty = c(1, 2, 3), lwd = 1.5 )
left |
Time at the left of the interval (L,R] |
right |
Time at the right of the interval (L,R] |
group |
An indicator vector with values of 1 if the the participant was in the treatment arm and 0 otherwise. |
iterations |
Number of maximum iterations for the EM algorithm. Default is 1000. |
end_follow |
A numeric value indicating the end of study follow-up. Default is the largest value for |
checkPH |
Logical argument to indicate if user wants to compare the nonparametric curve with the curve based on the proportional hazards model (default is FALSE). |
checkPO |
Logical argument to indicate if user wants to compare the nonparametric curve with the curve based on the proportional odds model (default is 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.