forestplot: Construct a forestplot from a 'anoint' object

View source: R/forestplot.R

forestR Documentation

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)

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.

Value

A labeled forestplot of subgroup treatment effects.

Author(s)

Stephanie Kovalchik <s.a.kovalchik@gmail.com>

Examples

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))



anoint documentation built on Sept. 11, 2024, 8:49 p.m.

Related to forestplot in anoint...