coxph_meta_analysis: Meta analysis forest plot

View source: R/coxph_meta_analysis.R

coxph_meta_analysisR Documentation

Meta analysis forest plot

Description

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

Usage

coxph_meta_analysis(
  data,
  time,
  status,
  vars,
  var,
  meta.group,
  weights = NULL,
  univariate = FALSE,
  na.rm = FALSE,
  ...
)

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.

var

grouping variable

meta.group

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

weights

character variable specifying the name of the weights column. Weights have to be added to the original dataframe in order to be applied correctly.

univariate

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

na.rm

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

...

additional arguments passed on to coxph


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