Function to compile the exposures from all MI datasets

Z.complete.MI(BKMRfits)

Arguments

BKMRfits

@param BKMRfits A list of multiple BKMR fits and that each of these fits were ran for the same number of MCMC iterations.

Value

a dataframe

Details

This step is needed to so that the contrast used when estimating the effects across the MI BKMR fits is consistent. (i.e. the same 25th, 50th, and 75th percentile of the metals is used when estimating the effect of a change in all metals at their 25th to all their 75th on the outcome for each MI BKMR fit). If the data are not imputed in the exposures, the original Z matrix can used as Z.complete.MI For guided examples, go to https://zc2326.github.io/causalbkmr/articles/MI_BKMR.html

Examples

Z.MI <- Z.complete.MI(BKMRfits10)