mi_mean: Compute the average dataset over imputed datasets.

View source: R/mi_pre.R

mi_meanR Documentation

Compute the average dataset over imputed datasets.

Description

mi_mean computes the averages dataset over a list of imputed datasets. Can be used to reduce computation time of functions singleplot and pairplot.

Usage

mi_mean(data)

Arguments

data

List of imputed datasets to compute the average dataset over.

Details

It is assumed every imputed dataset contains the same observations (but not the same values) in the same order.

Value

A dataset that is the average over the imputed datasets specified with data. For continuous predictors, the mean over imputed values is returned, for categorical predictors, the majority class ovder imputed values is returned. In case of a non-unique maximum, the value is sampled from the class with identical maximum counts.

See Also

mi_pre, singleplot, pairplot


marjoleinF/pre documentation built on April 24, 2024, 7:17 p.m.