View source: R/plot.TwoStageSurvSurv.R
plot TwoStageSurvSurv | R Documentation |
Produces a plot that graphically depicts trial-level surrogacy when the surrogate and true endpoints are survival endpoints.
## S3 method for class 'TwoStageSurvSurv'
plot(x, Weighted=TRUE, xlab, ylab, main,
Par=par(oma=c(0, 0, 0, 0), mar=c(5.1, 4.1, 4.1, 2.1)), ...)
x |
An object of class |
Weighted |
Logical. If |
xlab |
The legend of the X-axis, default "Treatment effect on the surrogate endpoint ( |
ylab |
The legend of the Y-axis, default "Treatment effect on the true endpoint ( |
main |
The title of the plot, default "Trial-level surrogacy". |
Par |
Graphical parameters for the plot. Default |
... |
Extra graphical parameters to be passed to |
Wim Van der Elst, Ariel Alonso, & Geert Molenberghs
TwoStageSurvSurv
# Open Ovarian dataset
data(Ovarian)
# Conduct analysis
Results <- TwoStageSurvSurv(Dataset = Ovarian, Surr = Pfs, SurrCens = PfsInd,
True = Surv, TrueCens = SurvInd, Treat = Treat, Trial.ID = Center)
# Examine results of analysis
summary(Results)
plot(Results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.