View source: R/medltmle_CreateMedInputs.R
CreateMedInputs | R Documentation |
Create Mediation Inputs for ltmleMediation.
CreateMedInputs( data, Anodes, Cnodes, Lnodes, Ynodes, Inodes, Znodes, Dnodes, W2nodes, survivalOutcome, QLform, QZform, gform, qzform, qLform, gbounds, Yrange, deterministic.g.function, SL.library, regimes, regimes.prime, working.msm, summary.measures, final.Ynodes, stratify, msm.weights, estimate.time, gcomp, iptw.only, deterministic.Q.function, IC.variance.only, observation.weights, CSE, past, time.end, YisL )
data |
Dataframe containing the data in a wide format. |
Anodes |
names of columns containing A covariates (exposure) (character). |
Cnodes |
names of columns containing C covariates (censoring) (character). |
Lnodes |
names of columns containing L covariates (covariate) (character). |
Ynodes |
names of columns containing Y covariates (outcome) (character). |
Inodes |
names of columns containing I covariates (instrument) (character). |
Znodes |
names of columns containing Z covariates (mediator) (character). |
Dnodes |
names of columns containing D covariates (death indicator) (character). |
W2nodes |
names of columns containing W2 covariates (baseline covariates in need of fluctuation) (character). |
survivalOutcome |
logical variable specifying if the outcome is survival. |
QLform |
Q forms for L covariates. |
QZform |
Q forms for Z covariates. |
gform |
g form for intervention (if there is a censoring variable, include C as well). |
qzform |
g form for Z covariates. |
qLform |
g form for L covariates. |
gbounds |
Bounds for the propensity score. |
Yrange |
Specify range for the outcome. |
deterministic.g.function |
Logical specifying if g is a deterministic function. |
SL.library |
SuperLearner library for estimation. |
regimes |
Regimes for abar as output by the RegimesFromAbar function. |
regimes.prime |
Regimes for abar.prime as output by the RegimesFromAbar function. |
working.msm |
Working MSM as output by the GetMediationMSMInputsForLtmle function. |
summary.measures |
Summary measures as output by the GetMediationMSMInputsForLtmle function. |
final.Ynodes |
Final Y node(s). |
stratify |
Logical enabling stratified outcome. |
msm.weights |
MSM weights. |
estimate.time |
Measure time to fun function. |
gcomp |
gcomp formula. |
iptw.only |
Use IPTW estimator only |
deterministic.Q.function |
Logical specifying if Q is a deterministic function. |
IC.variance.only |
Only estimate variance through the influence curve |
observation.weights |
Provide weight for observations |
CSE |
Logical specifying if the estimand is estimated by fully conditioning on the past (TRUE), or with the data-dependent estimate (FALSE). |
past |
Number indicating Markov order for the conditional densities. |
time.end |
Total number of time points. |
YisL |
Logical indicating whether Y is a function of time-varying covariates. |
Returns output ready for ltmleMediation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.