billionaiRe 0.8.1
- Update all documentation
- Add
basic-scenarios,acceleration-scenarios,sdg-scenarios, anddata-recyclingvignettes. - Organize documentation by topics.
billionaiRe 0.8.0
- Pass to version 0.8.0
- Modify all existing scenarios handling to implement modification requested by DFI:
- scenarios now start by default from the last value in
default_scenarioinstead of 2018 - acceleration scenarios that aimed at fixed targets based on top N countries are now calculated dynamically
- SDG scenarios now aim at the closest value to the SDG target rather than an alternative to acceleration. This makes the SDG scenarios more ambitious
- scenarios now start by default from the last value in
- Introduction of
add_populationsandadd_hep_populationsfunctions to retrieve accurate population for aggregation to higher dimensions - Introduction of
accelerate_targetscenarios, a variation on acceleration scenarios that aim at specific values whenever possible. - Introduction of benchmarking scenarios:
scenario_top_n_iso3allows to pick the best performing countries for a specific group and have all countries aim at the rate of change.
billionaiRe 0.7.0
- Pass to version 0.7.0 after removing of unused column parameters.
- Remove
ind,year,iso3,typeandsourcefrom functions parameters - Rename parameters
value,transform_value,scenario,contributionandcontribution_pcttovalue_col,transform_value_col,scenario_col,contribution_colandcontribution_pct_colrespectively.
billionaiRe 0.6.10
-
save_wrangled_outputnow saves files with all columns capitalised andload_billion_data_whdhchanges all column names to lower case after downloading data from WHDH to simplify WHDH => xMart pipelines.
billionaiRe 0.6.9
- Add
scenario_return_previous_trajectoryto return topre_covid_trajectoryaftercovid_shock - Add
impute_covid_shockto impute a COVID-19 shock easily - Add
aroc_typeand related parameters toscenario_dip_recoverto add alternatives on how the AROC is calculated. This is chiefly to allow to use an average AROC rather that just with latest value. - Corrects bugs
billionaiRe 0.6.8
- Adds support of
covid_shock -
make_default_scenario()now doesn’t require to havedefault_scenarioinscenariocolumn. - Updated save_wrangled_output to explicitly enforce expectations about data frames before writing to disk.
- New assertions:
assert_col_types(),assert_has_names(),assert_distinct_rows(), andassert_col_paired_with(). - Updated
wrangle_data.Rfunctions to explicitly cast columns to expected types.
billionaiRe 0.6.7
- Adds
upload_billion_datafunction for easy uploads to the 3B data lake in the World Health Data Hub (WHDH). - Adds
assert_timestampandassert_classutilities for checks. - Removed
testitdependencies. - Aligned
save_wrangled_outputandupload_billion_data: both functions now return the modified data frame after writing to disk/upload. - Updated docs for
xmart_colsandsave_wrangled_output -
save_wrangled_outputnow acceptsdata_typeandna_rmarguments - Default compression for
save_wrangled_outputchanged to “gzip” - Added more assertions to
save_wrangled_outputand the function now raises an error if the expected columns aren’t available (previously raised a warning and returned the input data frame instead). - Bug fix:
upload_billion_datanow returns a data frame (was previously returning NULL)
billionaiRe 0.6.6
- Updates to
load_billion_datafunctions incorporating thewhdh::download_data_assetfunction and the use of aversionargument to replace thedate_filterplaceholder. -
load_billion_datanow has anexperimentargument, which replacessandbox.
billionaiRe 0.6.5
- Replace names of scenarios with more informative names:
-
nonebecomesroutine -
tpbecomesreference_infilling
-
- add scenario and scenario_details to the wrangled columns in wrangling functions and xmart_cols as they will be expected to be present from now on.
- Adding COVID-19 scenarios.
billionaiRe 0.6.3
- Corrected problems with
fhwhere the indicator was not transformed correctly. See [issue #35]{https://github.com/gpw13/billionaiRe/issues/35} for more details. - Updated testing data frames accordingly.
billionaiRe 0.6.2
- Add scenario functions to billionaiRe. Those allow to calculate different scenarios based either in the application of one scenario to all indicators or through special-case scenarios where calculations might differ for all indicators. See the vignette(“scenario”, “billionaiRe”)
- Bring improvements to data_recycling
billionaiRe 0.6.1
- Add recycle_data functions to efficiently recycle data. See vignette(“scenarios”, “billionaiRe”) for an overview of the functionality and logic behind data recycling.
billionaiRe 0.6.0
Various updates to facilitate migration of the Triple Billion data pipeline into the WHDH * Updated load_billion_data to now pull data from the WHDH data lake by default and optionally set xMart as the data_source. Using xMart currently redirects the user to the legacy version of load_billion_data, while the xMart functionality is built. * Added get_whdh_path for easy generation of download/upload paths for the WHDH data lake * Updated save_wrangled_output to work with parquet format. * Added save_gho_backup_to_whdh, making it easier to backup snapshots of GHO data to the WHDH data lake. * Updated billion_ind_codes with a toggle for subindicators (like water_rural, water_urban and the eSpar categories and sub-categories). * Added get_ind_billion for determining which billion a given indicato belongs to. * Updated xmart_cols to return different sets of columns based for different types of data. * Added new assertions: assert_type, assert_fileext, assert_unique_vector, assert_length, assert_min_length, assert_same_length, assert_equals, and assert_x_in_y. * Updated assert_arg_exists to have custom error messages. * Rearranged utils_asserts.R to categorise the different assertions.
billionaiRe 0.5.3
- Export functions introduced in version 0.5.0 were moved the code to a new package: rapporteur. This reduces the size of the billionaiRe package and maintain a better logic in the package environment.
- Introduce basic testing (input-output) of the package.
billionaiRe 0.5.2
- Added further definitions to
indicator_df.xlsx - Renamed column
analysis_codebyindofindicator_df.xlsx. - Removed column
indofindicator_df.xlsx. - Modified code to use
indinstead ofanalysis_code.
billionaiRe 0.5.1
- Combined
indicator_df.xlsxandindicator_order.xlsxinto one file. - Updated dashboard_id to better align with current dashboard backend.
- Changes to DESCRIPTION reflecting
wppdistrotransfer to WorldHealthOrganization GitHub org.
billionaiRe 0.5.0
- Added
export_all_countries_summaries_xlsto export all country summary Excel files for all billions or a specific billion. - Added
export_country_summary_xlsto export one country summary Excel file for all billions or a specific billion. - Added support functions for the two preceding functions.
- Modified
indicator_df,indicator_df.xlsx, andindicator_df.rdato include additional information about indicators definition, names, etc. - Added
indicator_order.xlsxto be joined withindicator_df. - Added
affected_pathogens,affected_pathogens.xlsx, andaffected_pathogens.rdato indicate by which pathogens countries are affected. - Added
inst/extdata/country_summary_template.xlsxto store the Excel template for country profiles. - Modified all default values to 2025 instead of 2023.
- Added
pre-commithooks to style and ensure consistency in code on commit. See pre-commit repository for more information.
billionaiRe 0.4.4
- Added
calculate_contribution_sumswith the ability to calculate regional or global sums for HEP, HPOP, or UHC billions for a given year.
billionaiRe 0.4.3
- Added
wrangled_rural_urban_gho_data()with functionality to supplantwrangle_gho_data()for indicators where the data has an additional RESIDENCEAREATYPE dimension with possible values ofTOTL,URBandRUR. - Added
xmart_cols(),has_xmart_cols(),save_wrangled_output()utility functions for easier wrangling of data updates. - Full Billions data table added to
load_billion_data(), allowing user to directly download latest Billions data and resultant calculations.
billionaiRe 0.4.2
- Updated
indicator_df.xlsxandindicator_df.rdawith the GHO code for polio_routine(WHS4_544). - All Billions calculations now return
contribution_percentas well ascontributionvalues, for use in the dashboard and other presentations. - HPOP Billion calculation returns total Billion without double counting correction, as well as standard.
billionaiRe 0.4.1
- Updated
wrangle_who_datafunction with additional assertions and warnings - Updated
indicator_df.xlsxandindicator_df.rdawith the GHO code for measles_routine (WHS8_110)
billionaiRe 0.4.0
- Updated all three Billions functions to produce data in long format for immediate upload to xMart.
- Developed all three Billions to be calculated for various scenarios, defined in long format through a
scenariocolumn or in wide format by having multiplevaluecolumns. - Expanded HEP Billion to allow for the use of ebola, COVID, and measles campaign data within the Prevent indicator.
billionaiRe 0.3.0
- Updated data loading functions so that all 3 xMart databases are available: unprojected data, projected data, and final input data for the Billions.
- Added in
untransform_hpop_data()anduntransform_uhc_data()so that transformed data could be converted back into the original domain of the raw data. - Allow multiple columns to be transformed or untransformed at once using the
transform_...anduntransform_...functions for UHC and HPOP Billions. - Clear error messages added if there are non-distinct rows in
dfforind,iso3, andyear.
billionaiRe 0.2.1
- Changed
transform_glucose()to have a domain of 5.1 to 7.4, previously one of 5.1 to 7.4. - Fixed pop_links to ensure that IPV double counting correction was correct