impute_group_mean: Imputation using by-group mean.

Description Usage Arguments Value

View source: R/impute_group_mean.R

Description

Imputation using by-group mean.

Usage

1
impute_group_mean(x, varnames_impute, varnames_grp, pre_df_means = NULL)

Arguments

x

Data frame with missing values, and those values for imputation calculations.

varnames_impute

Vector of variable name(s) with missing values to be imputed.

varnames_grp

Vector of variable name(s) used for grouping.

pre_df_means

Existing data frame of by-group means, if available.

Value

A list of associated imputation objects:


abrahamalex13/doPrepExplore documentation built on Jan. 27, 2021, 4:30 a.m.