Skip to content

Commit

Permalink
Merge pull request #67 from ellessenne/#66
Browse files Browse the repository at this point in the history
Close #66. Some checks are failing, but I need to update GitHub actions to the v2 version (will do on main).
ellessenne authored May 1, 2023
2 parents 3cc0924 + ac0ae00 commit 5e4bd6b
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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.
Binary file modified R/sysdata.rda
Binary file not shown.
4 changes: 2 additions & 2 deletions data-raw/make-weights.R
Original file line number Diff line number Diff line change
@@ -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,
3 changes: 3 additions & 0 deletions vignettes/C-changes.Rmd
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 5e4bd6b

Please sign in to comment.