Skip to content

Commit

Permalink
Merge pull request #219 from mrc-ide/naomi-v2.3.1
Browse files Browse the repository at this point in the history
Naomi v2.3.1
  • Loading branch information
r-ash authored Feb 1, 2021
2 parents 30c1d6e + 798f209 commit 554633b
Show file tree
Hide file tree
Showing 8 changed files with 417 additions and 240 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: naomi
Title: Naomi Model for Subnational HIV Estimates
Version: 2.3.0
Version: 2.3.1
Authors@R:
person(given = "Jeff",
family = "Eaton",
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# naomi 2.3.1

* Set default for `calibrate_method` model option in user interface via JSON metadata.
* Fix swapped indicator_code and indicator_id for Data Pack metadata which were swapped.
* Refactor [`calibrate_outputs()`]; handle uncertainty ranges for proportion adjustments.

# naomi 2.3.0

* Implement 'logistic' scaling option for [`calibrate_outputs()`] such that estimates are
Expand Down
565 changes: 329 additions & 236 deletions R/outputs.R

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/datapack/datapack_indicator_mapping.csv
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ anc_tested_neg,tAE7ZD7p9zu,PMTCT_STAT_SUBNAT.N.New.Neg.T_1,# Pregnant Women who
anc_tested_pos,tAE7ZD7p9zu,PMTCT_STAT_SUBNAT.N.New.Pos.T_1,# Pregnant Women who are newly tested and found HIV-positive at ANC1,TRUE
art_current,xghQXueYJxu,TX_CURR_SUBNAT.T_1,Total # of PLHIV on ART,TRUE
art_coverage,TX_CURR_SUBNAT.Rt.T_1,TX_CURR_SUBNAT.Rt.T_1,ART coverage,FALSE
aware_plhiv_num,DIAGNOSED_SUBNAT.T_1,nF19GOjcnoD,Number of PLHIV aware of HIV positive status,TRUE
aware_plhiv_num,nF19GOjcnoD,DIAGNOSED_SUBNAT.T_1,Number of PLHIV aware of HIV positive status,TRUE
1 change: 1 addition & 0 deletions inst/metadata/calibration_run_options.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
{
"name": "calibrate_method",
"type": "select",
"value": "logistic",
"required": true,
"options": [
{
Expand Down
78 changes: 77 additions & 1 deletion man/calibrate_outputs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/scale_gmrf_precision.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/testthat/test-run-model.R
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ test_that("input data types can be formatted", {
})

test_that("model run can be calibrated", {

## Calibration makes no modification of existing files.
output_hash <- tools::md5sum(a_hintr_output$output_path)
spectrum_hash <- tools::md5sum(a_hintr_output$spectrum_path)
Expand Down

0 comments on commit 554633b

Please sign in to comment.