Skip to content

missRanger

Fast Imputation of Missing Values

v2.6.1 · Dec 7, 2024 · GPL (>= 2)

Description

Alternative implementation of the beautiful 'MissForest' algorithm used to impute mixed-type data sets by chaining random forests, introduced by Stekhoven, D.J. and Buehlmann, P. (2012) <doi:10.1093/bioinformatics/btr597>. Under the hood, it uses the lightning fast random forest package 'ranger'. Between the iterative model fitting, we offer the option of using predictive mean matching. This firstly avoids imputation with values not already present in the original data (like a value 0.3334 in 0-1 coded variable). Secondly, predictive mean matching tries to raise the variance in the resulting conditional distributions to a realistic level. This would allow, e.g., to do multiple imputation when repeating the call to missRanger(). Out-of-sample application is supported as well.

Downloads

CRAN

3.9K

Last 30 days

1871st

14.7K

Last 90 days

60.1K

Last year

Trend: -36.9% (30d vs prior 30d)

r2u CRAN

35

Last 30 days

236

Last 90 days

3.8K

Last year

Trend: +40% (30d vs prior 30d)

autoCRAN

1

Last 7 days

12

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running massageExamples to create ‘missRanger-Ex.R’ failed
Error in file(out, "wt") : cannot open the connection
Calls: <Anonymous> -> Rd2ex -> file
In addition: Warning message:
In file(out, "wt") :
  cannot open file '/tmp/Rtmpeztp4M/file39152a2331da6b/summary.missRanger.R': No space left on device
Execution halted
 NONE
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

2,651

Files

41

Compiled share

0%

Has compiled src

No

Language breakdown

R 860 (32.4%)Tests 1,035 (39%)Docs 354 (13.4%)Vignettes 402 (15.2%)

API

Exported functions

4

Internal functions

7

Testing & CI

Has tests

Yes

Test-to-code ratio

1.20

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

25%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

16

First release

2017-08-25

Latest release

2024-12-07

Avg cadence

112 days

Cold removal rate

Dep drift

1

LOC over versions

v1.0.0: 337 LOCv1.0.1: 347 LOCv1.0.2: 367 LOCv1.0.3: 368 LOCv1.0.4: 378 LOCv1.0.5: 387 LOCv2.1.0: 1,071 LOCv2.1.1: 1,443 LOCv2.1.3: 1,432 LOCv2.2.0: 1,560 LOCv2.2.1: 1,563 LOCv2.3.0: 1,563 LOCv2.4.0: 1,944 LOCv2.5.0: 1,961 LOCv2.6.0: 2,634 LOCv2.6.1: 2,651 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (8)

depends

Dependency Network

Dependencies Reverse dependencies FNN ranger imp4p hdImpute mlim outForest marginaleffects rtemis smriti worcs missRanger

Version History

17 tracked
new 2.6.1 Mar 10, 2026
updated 2.6.1 ← 2.6.0 diff Dec 6, 2024
updated 2.6.0 ← 2.5.0 diff Aug 16, 2024
updated 2.5.0 ← 2.4.0 diff Jul 11, 2024
updated 2.4.0 ← 2.3.0 diff Nov 18, 2023
updated 2.3.0 ← 2.2.1 diff Oct 19, 2023
updated 2.2.1 ← 2.2.0 diff Apr 27, 2023
updated 2.2.0 ← 2.1.3 diff Mar 23, 2023
updated 2.1.3 ← 2.1.1 diff Mar 29, 2021
updated 2.1.1 ← 2.1.0 diff Mar 19, 2021
updated 2.1.0 ← 1.0.5 diff Jun 29, 2019
updated 1.0.5 ← 1.0.4 diff Jun 8, 2019
updated 1.0.4 ← 1.0.3 diff Jan 7, 2019
updated 1.0.3 ← 1.0.2 diff May 14, 2018
updated 1.0.2 ← 1.0.1 diff Apr 22, 2018