mids2mitml.list: Convert objects of class 'mids' to 'mitml.list'

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mids2mitml.list.R

Description

This function converts a mids class object (as produced by the mice package) to mitml.list. The resulting object may be used in further analyses.

Usage

1

Arguments

x

An object of class mids as produced by mice (see the mice package).

Value

A list of imputed data sets with class mitml.list.

Author(s)

Simon Grund

See Also

mitmlComplete

Examples

1
2
3
4
5
6
7
data(studentratings)

# imputation using mice
require(mice)
imp <- mice(studentratings)

implist <- mids2mitml.list(imp)

Example output

sh: 1: cannot create /dev/null: Permission denied
*** This is beta software. Please report any bugs!
*** See the NEWS file for recent changes.
Loading required package: mice
sh: 1: cannot create /dev/null: Permission denied

Attaching package:miceThe following object is masked frompackage:stats:

    filter

The following objects are masked frompackage:base:

    cbind, rbind


 iter imp variable
  1   1  MathAchiev  MathDis  SES  ReadDis  SchClimate
  1   2  MathAchiev  MathDis  SES  ReadDis  SchClimate
  1   3  MathAchiev  MathDis  SES  ReadDis  SchClimate
  1   4  MathAchiev  MathDis  SES  ReadDis  SchClimate
  1   5  MathAchiev  MathDis  SES  ReadDis  SchClimate
  2   1  MathAchiev  MathDis  SES  ReadDis  SchClimate
  2   2  MathAchiev  MathDis  SES  ReadDis  SchClimate
  2   3  MathAchiev  MathDis  SES  ReadDis  SchClimate
  2   4  MathAchiev  MathDis  SES  ReadDis  SchClimate
  2   5  MathAchiev  MathDis  SES  ReadDis  SchClimate
  3   1  MathAchiev  MathDis  SES  ReadDis  SchClimate
  3   2  MathAchiev  MathDis  SES  ReadDis  SchClimate
  3   3  MathAchiev  MathDis  SES  ReadDis  SchClimate
  3   4  MathAchiev  MathDis  SES  ReadDis  SchClimate
  3   5  MathAchiev  MathDis  SES  ReadDis  SchClimate
  4   1  MathAchiev  MathDis  SES  ReadDis  SchClimate
  4   2  MathAchiev  MathDis  SES  ReadDis  SchClimate
  4   3  MathAchiev  MathDis  SES  ReadDis  SchClimate
  4   4  MathAchiev  MathDis  SES  ReadDis  SchClimate
  4   5  MathAchiev  MathDis  SES  ReadDis  SchClimate
  5   1  MathAchiev  MathDis  SES  ReadDis  SchClimate
  5   2  MathAchiev  MathDis  SES  ReadDis  SchClimate
  5   3  MathAchiev  MathDis  SES  ReadDis  SchClimate
  5   4  MathAchiev  MathDis  SES  ReadDis  SchClimate
  5   5  MathAchiev  MathDis  SES  ReadDis  SchClimate
Warning message:
Number of logged events: 2 

mitml documentation built on Oct. 5, 2021, 5:07 p.m.