plot.MetaAnalyticSurvBin: Generates a plot of the estimated treatment effects for the...

View source: R/MetaAnalyticSurvBin.R

plot.MetaAnalyticSurvBinR Documentation

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 'MetaAnalyticSurvBin()' 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 'MetaAnalyticSurvBin()' function.

Usage

## S3 method for class 'MetaAnalyticSurvBin'
plot(x, ...)

Arguments

x

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

...

...

Value

A plot of the type ggplot

Examples

## Not run: 
data("colorectal")
fit_bin <- MetaAnalyticSurvBin(data = colorectal, true = surv, trueind = SURVIND,
                               surrog = responder, trt = TREAT, center = CENTER,
                               trial = TRIAL, patientid = patientid,
                               adjustment="unadjusted")
plot(fit_bin)

## End(Not run)


Surrogate documentation built on June 22, 2024, 9:16 a.m.