Expand the dataset and impute nested counterfactual outcomes
Expand the dataset and impute nested counterfactual outcomes
This function both expands the data along hypothetical exposure values and imputes nested counterfactual outcomes.
neImpute(object,...)
Arguments
object: an object used to select a method.
...: additional arguments.
Returns
A data frame of class c("data.frame", "expData", "impData"). See expData for its structure.
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
E^(Yi∣Xi=x,Mi,Ci)
are predictions from the imputation model that can be specified either externally as a fitted model object (neImpute.default) or internally (neImpute.formula).
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.