neImpute {medflex} | R Documentation |
Expand the dataset and impute nested counterfactual outcomes
Description
This function both expands the data along hypothetical exposure values and imputes nested counterfactual outcomes.
Usage
neImpute(object, ...)
Arguments
object |
an object used to select a method. |
... |
additional arguments. |
Details
Generic function that both expands the data along hypothetical exposure values (for each observation unit i) and imputes nested counterfactual outcomes in this expanded dataset in a single run. Imputed counterfactual outcomes
\hat E(Y_i \vert X_i = x, M_i, C_i)
are predictions from the imputation model that can be specified either externally as a fitted model object (neImpute.default
)
or internally (neImpute.formula
).
Value
A data frame of class c("data.frame", "expData", "impData")
. See expData
for its structure.
References
Vansteelandt, S., Bekaert, M., & Lange, T. (2012). Imputation Strategies for the Estimation of Natural Direct and Indirect Effects. Epidemiologic Methods, 1(1), Article 7.
Loeys, T., Moerkerke, B., De Smet, O., Buysse, A., Steen, J., & Vansteelandt, S. (2013). Flexible Mediation Analysis in the Presence of Nonlinear Relations: Beyond the Mediation Formula. Multivariate Behavioral Research, 48(6), 871-894.
See Also
neImpute.default
, neImpute.formula
, neModel
, expData