subj_mi: multiple imputation for subject level data

View source: R/subj_mi.R

subj_miR Documentation

multiple imputation for subject level data

Description

multiply imputes unobserved subject level data using mice

Usage

subj_mi(dt, num_ms = 10, maxit = 20, x_inc = TRUE)

Arguments

dt

tibble, subject level data

num_ms

numeric, Default: 10, number of imputed datasets

maxit

numeris, Default: 20, number of maximum iterations per imputation

x_inc

logic, Default: TRUE, indicates whether covariate should be included in the multiple imputation

Details

the function reads a partially observed subject level data, then multiple imputes it using mice with logistic model

Value

tibble, contains summary of the multiply imputed responses

See Also

tibble map2 cor


yuliasidi/m2imp documentation built on Jan. 16, 2024, 3:59 a.m.