Multiple imputation using mice::mice
by cohort/cluster
mice_group_impute(
df,
clusterid,
imputeLevel = 1,
miceArg = list(method = "mean", maxit = 1)
)
data.frame for MICE imputation
string, the name of cohort id indicator in the dataframe
binary, 0 (no imputation) and 1 (impute everything)
a list of arguments parse into mice::mice