forestplot_meta_eumelareg: Meta analysis forest plot

forestplot_meta_eumelaregR Documentation

Meta analysis forest plot

Description

This code generates a forestplot from a meta analysis coxph model.

Usage

forestplot_meta_eumelareg(
  data,
  time,
  status,
  vars,
  meta.group,
  univariate = TRUE,
  weights = NULL,
  imputation = FALSE,
  main = "Hazard ratio for disease progression or death (95% CI)",
  na.rm = FALSE,
  y_breaks = NULL,
  cpositions = c(0, 0.1, 0.3),
  impIter = 25,
  refLabel = "reference",
  point_size = 4,
  fontsize = 1,
  line_size = 0.9,
  vjust_text = 1.2,
  noDigits = 2,
  varnames = NULL,
  ylim = NULL
)

Arguments

data

data

time

the time interval from start of observation until date of event (e.g. disease progression or death) or censoring.

status

variable specifying if event occured or data has been censored.

vars

variables tested for Influence on outcome.

meta.group

variable for which meta analysis should be conducted. Usually the outcome of interest (e.g. treatment).

univariate

Logical value. If TRUE output of univariate cox regression is printed. Else output of multivariate

weights

variable providing weights for downstream coxph analysis. If imputation == TRUE weights will be calculated internally within the imputation call. Set weights == TRUE/FALSE, if using multiple imputation, otherwise provide vector with weights the same length as the data.frame.

imputation

Logical variable specifying whether missing should be replaced by multiple imputation

main

title of the plot.

na.rm

logical indicating whether missing values (Specified as "missing" or "Missing") should be removed

y_breaks

argument to supply manual y_breaks as a numerical vector. Default is NULL and breaks are set automatically within the function.

cpositions

relative positions of first three columns in the OX scale.

impIter

number of iterations for multiple imputation.

refLabel

label for reference levels of factor variables.

point_size

Size of mean points.

fontsize

relative size of annotations in the plot. Default value: 0.7.

line_size

Size of errorbar line.

vjust_text

vertical adjustment of text containing information about events, global pvalue, AIC and concordance index

noDigits

number of digits for estimates and p-values in the plot.

varnames

Character vector specifying rownames of the table (empty columns should be named with "").

ylim

argument to supply manual y limits as numerical vector of length 2. Default is NULL and limits are set automatically within the function.


MBender1992/emR documentation built on Feb. 18, 2025, 9:21 a.m.