View source: R/CMI_CheckMedInputs.R
CheckMediationInputs | R Documentation |
Error checking for inputs.
CheckMediationInputs( data, nodes, survivalOutcome, QLform, QZform, qLform, qzform, gform, gbounds, Yrange, deterministic.g.function, SL.library, regimes, regimes.prime, working.msm, summary.measures, final.Ynodes, stratify, msm.weights, deterministic.Q.function, observation.weights, gcomp, IC.variance.only )
data |
Dataframe containing the data in a wide format. |
nodes |
list of nodes. |
survivalOutcome |
logical variable specifying if the outcome is survival. |
QLform |
Q forms for L covariates. |
QZform |
Q forms for Z covariates. |
qLform |
g form for L covariates. |
qzform |
g form for Z covariates. |
gform |
g form for intervention (if there is a censoring variable, include C as well). |
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. |
deterministic.Q.function |
Logical specifying if Q is a deterministic function. |
observation.weights |
Provide weight for observations |
gcomp |
gcomp formula. |
IC.variance.only |
Only estimate variance through the influence curve |
Checks if the input is valid for further analysis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.