Skip to content

amices/callmice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

callmice

Importing mice functionality into your own package

The mice package implements a method to deal with missing data. The callmice pachage tests and demonstrates how to incorporate functionality from the mice package into your own package.

Installation

The callmice package can be installed from GitHub as follows:

install.packages("devtools")
devtools::install_github(repo = "stefvanbuuren/callmice")

Minimal example

library(callmice)

imp <- myimpute(m = 2, print = FALSE)
imp
#> Class: mids
#> Number of multiple imputations:  2 
#> Imputation methods:
#>   age   bmi   hyp   chl 
#>    "" "pmm" "pmm" "pmm" 
#> PredictorMatrix:
#>     age bmi hyp chl
#> age   0   1   1   1
#> bmi   1   0   1   1
#> hyp   1   1   0   1
#> chl   1   1   1   0

About

Test and demonstrates how to use mice in your own package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages