Learn R Programming

Surrogate (version 3.4.1)

plot.MetaAnalyticSurvCont: Generates a plot of the estimated treatment effects for the surrogate endpoint versus the estimated treatment effects for the true endpoint for an object fitted with the 'MetaAnalyticSurvCont()' function.

Description

Generates a plot of the estimated treatment effects for the surrogate endpoint versus the estimated treatment effects for the true endpoint for an object fitted with the 'MetaAnalyticSurvCont()' function.

Usage

# S3 method for MetaAnalyticSurvCont
plot(x, ...)

Value

A plot of the type ggplot

Arguments

x

An object of class 'MetaAnalyticSurvCont' fitted with the 'MetaAnalyticSurvCont()' function.

...

...

Examples

Run this code
if (FALSE) {
data("colorectal4")
data("prostate")
fit <- MetaAnalyticSurvCont(data = prostate, true = SURVTIME, trueind = SURVIND, surrog = PSA,
trt = TREAT, center = TRIAL, trial = TRIAL, patientid = PATID,
copula = "Hougaard", adjustment = "weighted")
plot(fit)
}

Run the code above in your browser using DataLab