diff --git a/NEWS.md b/NEWS.md index 399c8f4..c3d81ab 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,8 @@ # comorbidity (development version) +* Adjusted name of weights (leftover from #53, thanks @sciatro for reporting this). + This bug did not seem to affect any calculation. + # comorbidity 1.0.5 * Adjusted some tests that were spuriously failing on CRAN. diff --git a/R/sysdata.rda b/R/sysdata.rda index c7bab13..80dec38 100644 Binary files a/R/sysdata.rda and b/R/sysdata.rda differ diff --git a/data-raw/make-weights.R b/data-raw/make-weights.R index 017bc12..f64be27 100644 --- a/data-raw/make-weights.R +++ b/data-raw/make-weights.R @@ -6,7 +6,7 @@ for (w in names(.maps)) { # Charlson-compatible weights: # Original Charlson weights .weights[[w]][["charlson"]] <- c( - ami = 1, + mi = 1, chf = 1, pvd = 1, cevd = 1, @@ -26,7 +26,7 @@ for (w in names(.maps)) { ) # Quan (2011) .weights[[w]][["quan"]] <- c( - ami = 0, + mi = 0, chf = 2, pvd = 0, cevd = 0, diff --git a/vignettes/C-changes.Rmd b/vignettes/C-changes.Rmd index eb1a3cc..3bcbf83 100644 --- a/vignettes/C-changes.Rmd +++ b/vignettes/C-changes.Rmd @@ -65,6 +65,9 @@ comorbidity(x = sim_data, id = "id", code = "code", score = "charlson", icd = "i #> 10 0 0 0 1 1-2 2 1-2 ``` +Note that, as of {comorbidity} version 1.0.4, the `ami` condition has been renamed to `mi`. +See [#53](https://github.com/ellessenne/comorbidity/issues/53) on GitHub for more details. + Now, we first need to apply the mapping algorithm: ```{r}