diff --git a/DESCRIPTION b/DESCRIPTION index 94240e992..ccdff1d23 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: mice Type: Package -Version: 3.16.4 +Version: 3.16.5 Title: Multivariate Imputation by Chained Equations -Date: 2023-08-08 +Date: 2023-09-04 Authors@R: c(person("Stef", "van Buuren", role = c("aut","cre"), email = "stef.vanbuuren@tno.nl"), person("Karin", "Groothuis-Oudshoorn", role = "aut", diff --git a/NEWS.md b/NEWS.md index 6a71db54a..cda021f36 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,8 @@ +# mice 3.16.5 + +* Patches a bug in `complete()` that auto-repeated imputed values into cells that should NOT be imputed (occurred as a special case of `rbind()`, where the first set of rows was imputed and the second was not). +* Replaces the internal variable `type` by the more informative `pred` (currently active row of `predictorMatrix`) + # mice 3.16.4 **Imputing categorical data by predictive mean matching**. Predictive mean matching (PMM) is the default method of `mice()` for imputing numerical variables, but it has long been possible to impute factors. This enhancement introduces better support to work with categorical variables in PMM. The **former system** translated factors into integers by `ynum <- as.integer(f)`. However, the order of integers in `ynum` may have no sensible interpretation for an unordered factor. The **new system** quantifies `ynum` and could yield better results because of higher $R^2$. The method calculates the canonical correlation between `y` (as dummy matrix) and a linear combination of imputation model predictors `x`. The algorithm then replaces each category of `y` by a single number taken from the first canonical variate. After this step, the imputation model is fitted, and the predicted values from that model are extracted to function as the similarity measure for the matching step. diff --git a/README.Rmd b/README.Rmd index 3cfb3dfd6..e1f817f36 100644 --- a/README.Rmd +++ b/README.Rmd @@ -23,7 +23,7 @@ set.seed(1) [![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/mice)](https://cran.r-project.org/package=mice) [![](https://cranlogs.r-pkg.org/badges/mice)](https://cran.r-project.org/package=mice) [![R-CMD-check](https://github.com/amices/mice/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/amices/mice/actions/workflows/R-CMD-check.yaml) -[![](https://img.shields.io/badge/github%20version-3.16.4-orange.svg)](https://amices.org/mice/) +[![](https://img.shields.io/badge/github%20version-3.16.5-orange.svg)](https://amices.org/mice/) ## [Multivariate Imputation by Chained Equations](https://amices.org/mice/) diff --git a/README.md b/README.md index 9faa99316..aaabb8da3 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/mice)](https://cran.r-project.org/package=mice) [![](https://cranlogs.r-pkg.org/badges/mice)](https://cran.r-project.org/package=mice) [![R-CMD-check](https://github.com/amices/mice/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/amices/mice/actions/workflows/R-CMD-check.yaml) -[![](https://img.shields.io/badge/github%20version-3.16.4-orange.svg)](https://amices.org/mice/) +[![](https://img.shields.io/badge/github%20version-3.16.5-orange.svg)](https://amices.org/mice/) ## [Multivariate Imputation by Chained Equations](https://amices.org/mice/) diff --git a/man/figures/README-pattern-1.png b/man/figures/README-pattern-1.png index 11ac59ddc..4175b4c92 100644 Binary files a/man/figures/README-pattern-1.png and b/man/figures/README-pattern-1.png differ diff --git a/man/figures/README-stripplot-1.png b/man/figures/README-stripplot-1.png index 4e8d32874..33cfbaeb8 100644 Binary files a/man/figures/README-stripplot-1.png and b/man/figures/README-stripplot-1.png differ