Learn R Programming

anoint (version 1.4)

forest: Construct a forestplot from a anoint object

Description

Constructs a forestplot displaying the treatment effect within subgroups for each set of specified categorical variables. Provides a visual comparison of subgroup treatment effect to overall treatment effect, without adjustment for confounding factors or multiplicity.

Includes unadjusted p-values for each subgroup's treatment-covariate interaction test for glm or Cox regression models.

Usage

forest(object,terms=NULL,x.axis=NULL,labels=NULL,fun=exp,...)

Arguments

object
object of anoint class
terms
numeric index indicating which terms in prognostic model to include in plot
x.axis
Points for tick marks of the bottom axis
labels
Matrix of labels of the same rows as onebyone, columns printed from left to right
fun
functional transformation applied to treatment effects and confidence intervals
...
additional arguments passed to foresplot (see details)

Value

A labeled forestplot of subgroup treatment effects.

Details

Additional arguments that can be specified include:

pch.size
one number of a vector of two elements indicating the (min, max) for the relative plotting symbols. These reflect the relative precision of the symbol estimates

x.axis
Points for tick marks of the bottom axis

header
Vector of names for the columns of labels

main
String of the title of plot

If no values are specifed for the x.axis, eight values over the range of the CIs is used.

If no values are specified for labels, the row names are used.

Examples

Run this code
data(simsolvd)

obj <- anoint(Surv(ttodthorchfhosp, censor==0)~(nyha+cardratio+current)*trt,data=simsolvd,
       		       family="coxph")

forest(obj)

grid.newpage()

forest(obj,x.axis=seq(0.7,1.5,by=.2))


Run the code above in your browser using DataLab