fit_cox.mi: ifelse when used with Dates

Description Usage Arguments Value

View source: R/models.R

Description

ifelse when used with Dates

Usage

1
2
3
fit_cox.mi(mi_data, str_coxph = "coxph(Surv(time = time, event = event)~1",
  analysis = "intention.to.treat", str_survfit = gsub("user",
  "strata(user)", str_coxph))

Arguments

mi_data

multiple imputation data with each imputation in stacked by rows

str_coxph

string containing the cox models to be evaluated (default="coxph(Surv(time = time, event = event)~1")

analysis

type of analysis to perform 'intention.to.treat', 'per.protocol' and 'as.treated' (default: 'intention.to.treat')

str_survfit

string containing the survival curve to be evaluated

Value

result of fitting the model


mcomas/usrgi.lib documentation built on May 22, 2019, 3:18 p.m.