df2milist: Turns a data frame with multiply imputed data into an object...

View source: R/df2milist.R

df2milistR Documentation

Turns a data frame with multiply imputed data into an object of class 'milist'

Description

df2milist Turns a data frame of class 'data.frame', 'tbl_df' or 'tbl' (tibble) into an object of class 'milist' to be further used by 'miceafter::with'

Usage

df2milist(data, impvar, keep = FALSE)

Arguments

data

an object of class 'data.frame', 'tbl_df' or 'tbl' (tibble).

impvar

A character vector. Name of the variable that distinguishes the imputed datasets.

keep

if TRUE the grouping column is kept, if FALSE (default) the grouping column is not kept.

Value

an object of class 'milist' (Multiply Imputed Data list)

Author(s)

Martijn Heymans, 2021


miceafter documentation built on Oct. 2, 2022, 5:08 p.m.