mi_coxph_meta_analysis: COmparison of two treatments with cox regression

View source: R/mi_coxph_meta_analysis.R

mi_coxph_meta_analysisR Documentation

COmparison of two treatments with cox regression

Description

This code generates the input for a forestplot comparing two treatment options.

Usage

mi_coxph_meta_analysis(
  data,
  time,
  status,
  vars,
  var,
  meta.group,
  weights = FALSE,
  m = 25
)

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

Logical value indicating wether inverse propensity score weighting should be applied

m

number of iterations for multiple imputation


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