mice_group_impute: Multiple imputation by cohort/cluster

View source: R/utils.R

mice_group_imputeR Documentation

Multiple imputation by cohort/cluster

Description

Multiple imputation using mice::mice by cohort/cluster

Usage

mice_group_impute(
  df,
  clusterid,
  imputeLevel = 1,
  miceArg = list(method = "mean", maxit = 1)
)

Arguments

df

data.frame for MICE imputation

clusterid

string, the name of cohort id indicator in the dataframe

imputeLevel

binary, 0 (no imputation) and 1 (impute everything)

miceArg

a list of arguments parse into mice::mice


yqzhong7/relate documentation built on Jan. 29, 2023, 6:33 p.m.