get.meta {dpasurv} | R Documentation |
Do not call this function on its own
get.meta(out.formula, mediator.formulas, data)
out.formula |
Survival formula for Aalen's additive hazards model. |
mediator.formulas |
list of mediator regression formulas. |
data |
Data set in counting process format. In particular the data should contain a "start", "stop" and "event" column along with any mediators and baseline covariates. |
list of meta data associated with out.formula and mediator.formulas. Consists of the following fields:
list containing variable names for startt, stopt, event, and right hand side of out.formula
list containing response variable name and right hand side of mediator.formulas
list containing the class of variables in out.formula and mediator.formulas
library(dpasurv)
data(simdata)
meta <- get.meta(Surv(start, stop, event) ~ x + M, list(M ~ x), simdata)