Expanded dataset including either ratioofmediator probability weights or imputed nested counterfactual outcomes.
A data frame, resulting from applying neWeight
or neImpute
on an original dataset data
.
This data frame has nRep * length(data)
rows, containing all original variables (except the original exposure variable)
and two variables reflecting observed and hypothetical values of the exposure for each observation unit.
These auxiliary variables (x and x*) are named after the exposure variable and carry integers as suffixes.
Suffixes 0
and 1
are used for variables whose corresponding parameters in the final natural effect model index natural direct and indirect effects, respectively.
This object also stores some additional attributes, which are used as input for neModel
, such as

the fitted working model object 

original dataset 

the matched call 

the 

ratioofmediator probability weights (only stored if object inherits from class 
If the weightingbased approach (neWeight
) is applied, the original outcome values are copied for the nested counterfactual outcomes
and the object stores an additional attribute, "weights"
, containing a vector with ratioofmediator probability weights.
If the imputationbased approach (neImpute
) is applied, the nested counterfactual outcomes are imputed by predictions from the imputation model.
In the former case, this object inherits from classes c("data.frame", "expData", "impData")
, whereas in the latter case it inherits from classes c("data.frame", "expData", "weightData")
.
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.