Learn R Programming

sensitivityPStrat (version 1.0-3)

plot.sensitivity: plots the results of calls to the sensitivity functions.

Description

Functions used to plot the objects created by the sensitivityPStrat family of functions.

Usage

## S3 method for class 'sensitivity.1.0d':
plot(x, xlim, ylim,
     xlab = expression(beta), ylab = "ACE",
     display = c("analytic", "bootstrap"),
     col = "black", line.col = col, point.col = col,
     analytic.col = "red", analytic.line.col = analytic.col,
     analytic.point.col = analytic.col,
     bootstrap.col = "green", bootstrap.line.col = bootstrap.col,
     bootstrap.point.col = bootstrap.col,
     panel.last = NULL, type = "l", ...)

## S3 method for class 'sensitivity.2.0d': plot(x, xlim, ylim, xlab = expression(beta[0]), ylab = expression(beta[1]), display = c("analytic", "bootstrap"), col = c(gray(.9), gray(1), gray(.8)), panel.last = NULL, ...)

## S3 method for class 'sensitivity.1.1d': plot(x, xlim, ylim, xlab = expression(beta), ylab = "SCE", t.point, display = c("analytic", "bootstrap"), col = "black", line.col = col, point.col = col, analytic.col = "red", analytic.line.col = analytic.col, analytic.point.col = analytic.col, bootstrap.col = "green", bootstrap.line.col = bootstrap.col, bootstrap.point.col = bootstrap.col, panel.last = NULL, type = "l", ...)

Arguments

x
sensitivity object
t.point
the time point at which data to create the plot.
display
character vector. Controlls which confidence interval to use plot.
line.col
the color all the lines should be.
point.col
the color all the infinity points should be.
analytic.col
the color of all of the analytic confidence interval markings
analytic.line.col
the color of all of the analytic confidence interval lines
analytic.point.col
the color of all of the analytic confidence interval infinity points
bootstrap.col
the color of all of the bootstrap confidence interval markings
bootstrap.line.col
the color of all of the bootstrap confidence interval lines
bootstrap.point.col
the color of all of the bootstrap confidence interval infinity points
xlim, ylim, xlab, ylab, col, panel.last, type
...
arguments passed to plot.default

See Also

plot.default

Examples

Run this code
data(vaccine.trial)

plot(with(vaccine.trial,
          sensitivityJR(z=treatment,s=hiv.outcome,y=logVL,
                    beta0=c(-1,-.75,-.5,-.25,0,.25,.5,.75,1),
                    beta1=c(-1,-.75,-.5,-.25,0,.25,.5,.75,1),
                    phi=c(0.95,0.90,0.80), selection="infected",
                    groupings=c("placebo","vaccine"),
                    N.boot=100)
         ))

Run the code above in your browser using DataLab