Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

jomo2datlist

Converts a jomo Data Frame in Long Format into a List of Datasets or an Object of Class mids


Description

Converts a jomo data frame in long format into a list of datasets or an object of class mids.

Usage

jomo2datlist(jomo.dataframe, variable="Imputation")

jomo2mids(jomo.dataframe, variable="Imputation")

Arguments

jomo.dataframe

Data frame generated in jomo package

variable

Variable name for imputation index

Value

List of multiply imputed datasets

See Also

See the jomo package.

Examples

## Not run: 
#############################################################################
# EXAMPLE 1: Dataset nhanes | jomo imputation and conversion into a data list
#############################################################################

data(nhanes, package="mice")
dat <- nhanes

# impute under multivariate normal model in jomo
imp1 <- jomo::jomo1con(Y=dat, nburn=100, nbetween=10, nimp=5)
# convert into a list of datasets
datlist1 <- miceadds::jomo2datlist(imp1)
# convert into mids object
datlist2 <- miceadds::jomo2datlist(imp1)

## End(Not run)

miceadds

Some Additional Multiple Imputation Functions, Especially for 'mice'

v3.11-6
GPL (>= 2)
Authors
Alexander Robitzsch [aut,cre] (<https://orcid.org/0000-0002-8226-3132>), Simon Grund [aut] (<https://orcid.org/0000-0002-1290-8986>), Thorsten Henke [ctb]
Initial release
2021-01-21 11:48:47

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.