Skip to content

Commit f1932ed

Browse files
committed
Update NEWS, site and attach dev 9000 indicator
1 parent fddddbb commit f1932ed

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: mice
22
Type: Package
3-
Version: 3.17.3
3+
Version: 3.18.0.9000
44
Title: Multivariate Imputation by Chained Equations
55
Date: 2025-3-28
66
Authors@R: c(person("Stef", "van Buuren", role = c("aut","cre"),

NEWS.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1-
## New Feature: Parallel Imputation (Experimental)
2-
- The `mice()` function now supports parallel execution of imputations via the new `parallel = TRUE` argument. When enabled, imputation chains are distributed across available CPU cores using the `future` and `future.apply` frameworks. Parallel imputation may significantly reduce runtime, especially for large datasets and many imputations (`m`).
3-
- To activate parallel execution:
4-
5-
```{r}
6-
library(future)
7-
plan(multisession) # or multisession, multicore, cluster, etc.
8-
imp <- mice(data, m = 5, maxit = 5, parallel = TRUE)
1+
# mice 3.18.0.9000
2+
3+
> **Experimental release**: Native support for parallel imputation.
4+
5+
- The `mice()` function now supports parallel execution of imputations via the new `parallel = TRUE` argument. When enabled, instead of sequentially calculating `m` imputations at a given iteration, the `m` chains are distributed across available CPU cores using the `future` and `future.apply` frameworks.
6+
- Parallel imputation may significantly reduce runtime, especially for large datasets and many imputations (`m`), but does not pay-off for small datasets or few imputations.
7+
- Parallel execution is implemented only in the `mice()` function, and does not affect the `mice.impute.*()` functions.
8+
9+
- To activate parallel execution:
10+
11+
```
12+
library(mice)
13+
imp <- mice(data, parallel = TRUE)
914
```
1015

11-
- The default is `parallel = FALSE` for backward compatibility.
12-
- A new parallel argument was added to `sampler()` for internal control.
13-
- `printFlag = TRUE` prints iteration and imputation number only in sequential mode; parallel mode reports timing per iteration.
14-
- Note: Users must install the `future` and `future.apply` packages and explicitly choose a parallel backend (e.g., `plan(multisession)`).
16+
- The default is `parallel = FALSE` for backward compatibility.
17+
- The argument `n.core` specifies the number of CPU cores to use. If `n.core` is not specified (default) the actual number of cores used is calculated as minimum(number of available cores - 1, number of imputations).
18+
- `printFlag = TRUE` prints iteration and imputation number only in sequential mode; parallel mode reports timing per iteration.
19+
- Note: `mice()` will automatically select a parallel backend (default is `multisession`). To override, users may manually call `plan(...)` before running `mice()`.
20+
- The `future` and `future.apply` packages must be installed to run parallel imputation. If not installed, `mice()` will throw an error and suggest installing the packages.
21+
- The wrappers `parlmice()` and `futuremice()` are still functional, but now throw a warning that they will be deprecated in the future. Users are encouraged to use the new `parallel` argument in `mice()` instead.
1522

1623
# mice 3.17.3
1724

_pkgdown.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
title: mice
22
url: https://amices.org/mice/
3+
development:
4+
mode: auto
35
template:
46
bootstrap: 5
57
params:
@@ -126,6 +128,7 @@ reference:
126128
- norm.draw
127129
- .norm.draw
128130
- .pmm.match
131+
- record.event
129132
- title: Multivariate amputation
130133
desc: |
131134
Amputation is the inverse of imputation, starting with a complete dataset, and creating missing data pattern according to the posited missing data mechanism. Amputation is useful for simulation studies.
@@ -178,4 +181,5 @@ articles:
178181
contents:
179182
- overview
180183
- oldfriends
184+
- developer-notes-complete
181185

0 commit comments

Comments
 (0)