forest | R Documentation |
anoint
objectConstructs 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.
forest(object,terms=NULL,x.axis=NULL,labels=NULL,fun=exp,...)
object |
object of |
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 |
fun |
functional transformation applied to treatment effects and confidence intervals |
... |
additional arguments passed to |
Additional arguments that can be specified include:
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
Points for tick marks of the bottom axis
Vector of names for the columns of labels
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.
A labeled forestplot of subgroup treatment effects.
Stephanie Kovalchik <s.a.kovalchik@gmail.com>
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.