Multiple imputation using mice::mice by cohort/cluster

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