Learn R Programming

Surrogate (version 3.3.3)

plot.MetaAnalyticSurvCat: 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 'MetaAnalyticSurvCat()' 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 'MetaAnalyticSurvCat()' function.

Usage

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

Value

A plot of the type ggplot

Arguments

x

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

...

...

Examples

Run this code
if (FALSE) {
data("colorectal4")
fit <- MetaAnalyticSurvCat(data = colorectal4, true = truend, trueind = trueind, surrog = surrogend,
                           trt = treatn, center = center, trial = trialend, patientid = patid,
                           adjustment="unadjusted")
plot(fit)
}

Run the code above in your browser using DataLab