Skip to content

Releases: PHSKC-APDE/apde.chi.tools

v2026.0.2

18 Mar 20:32
3a0b6fb

Choose a tag to compare

New Functions / data:

  • none

Updated Functions / data:

  • chi_standard_varnames updated with 'youth_binary' values

Updated Vignettes / Documentation:

  • none

Deprecations:

  • none

Other Changes:

  • none

v2026.0.1

16 Mar 22:05
48e56c9

Choose a tag to compare

Minor updates from 2026.0.0

What's Changed

Full Changelog: v2026.0.0...v2026.0.1

v2026.0.0

19 Feb 19:54
aad87fc

Choose a tag to compare

Passed devtools::check(): 0 errors ✔ | 0 warnings ✔ | 0 notes ✔
Replicated 2023 Birth CHI analysis perfectly (and quickly!)

  1. Removed Birthing person's prefix handling:
  • chi_generate_analysis_set() is now the only function that addresses the prefix and this is to remove it
  • Updated vignettes and documentation to reflect new standards
  1. Refactor chi_calc() to allow use of BRFSS imputationLists and for massive speed improvements when run on multicore machines

  2. modified Improved race3/race4 variable handling:

  • Revised population helper functions to better deal with race3/race4 inconsistencies
  • Modified chi_process_nontrends() to ensure proper cat1/cat2 values
  • Fixed chi_qa_tro() to correctly handle 'race/ethnicity' as valid only for trends (not reflected in CHI standards due to tab differences)
  • Updated chi_generate_tro_shell() to generate templates with correct final varname/group/cat values (i.e., the shell/template/instructions will align with the CHI cat/byvar standards and standard combinations will be returned throughout the pipeline
  1. Fix when instructions request years that are not available
  • Provides a warning and drops the row of the instructions
  1. Misc small improvements:
  • Set cat1 and tab back to character after calculations (factor was only needed for sorting)
  • Allows SE/RSE to be NA when appropriate (e.g., when denominator == 0 for rates they are undefined)
  • Updated dependencies in DESCRIPTION
  • Updates to avoid deprecated rads functions, e.g., rads::get_population() >> apde.data::population()
  1. Updated wiki / vignettes

Full Changelog: v2025.0.3...v2026.0.0

v2025.0.3

29 May 20:36
a52d19f

Choose a tag to compare

Minor update improving internal functionality, some error message, and man pages

v2025.0.2

17 May 00:38
6a93c14

Choose a tag to compare

New Functions

  • chi_suppress_results() - applies primary and secondary suppression
  • check_version() - checks if you have the latest version installed. Autochecks when attaching library.

Refactoring and Improvements

  • chi_calc() - validate analysis years requested by ph.instructions compared to available chi_years in ph.data
  • chi_get_proper_pop() - optimize to run faster by batching pulls from rads::get_population.
  • chi_get_proper_pop() - add is_chars paramater to allow for differnt definition of King County for CHARS analyses

Bug Fixes

  • chi_calc() - correct values for SE and RSE when numerator and or denominare are zero or NA
  • chi_get_proper_pop() - fixed assign_geographic_crosswalk helper function (catvarname was not passed but was expected)
  • chi_get_proper_pop() - Fixed small bug for race/ethnicity (capitalization matters)
  • updated tests because standards in rads.data::misc_chi_byvars changed

What's Changed

Full Changelog: v2025.0.1...v2025.0.2

v2025.0.1

16 Apr 21:57
b56ae4b

Choose a tag to compare

What's Changed

  • minor update to package requirements and readme by @rwbuie in #25

Full Changelog: v2025.0.0...v2025.0.1

v2025.0.0

14 Apr 23:44
d4d8849

Choose a tag to compare

apde.chi.tools v2025.0.0: Initial full version

Overview

This release marks the first production version of apde.chi.tools. This package replaces multiple functions previously sourced from the chi repository.

Major Changes

New Functions

  • chi_chars_ccs: batch produce CHI CHARS counts of non-injuries
  • chi_chars_injury: batch produce CHI CHARS counts of injuries
  • chi_compare_estimates: create estimate comparison for metadata
  • chi_generate_analysis_set: creates DT of analysis set for multiple CHI analysis
  • chi_keep_proper_ages: filters out non-sensical chi_ages. E.g., when cat1_group or cat2_group == '<18', only rows with chi_age < 18 are retained.

Refactoring and Improvements

  • chi_get_cols now can retrieve metadata (set metadata = TRUE)
  • chi_calc now determines whether it should use WA or KC data based on tab == '_wastate', which should be more stable than looking for wastate as a byvar.

Bug Fixes

Multiple bug fixes, hopefully we didn't miss anything.

Documentation

Walkthrough for prevelance available in wiki. This shows how to use core functions for begening to end of CHI analysis process.

Maintenance

Added multiple test functions

Version

Version set to 2025.0.0, first major release. Any patches or updates necessary for this year's CHI will be under the '2025' version (e.g. 2025.0.1 for a minor patch).

What's Changed

New Contributors

Full Changelog: v0.0.2...v2025.0.0

v0.0.2

07 Mar 00:27
c55a5e2

Choose a tag to compare

v0.0.2 Pre-release
Pre-release

apde.chi.tools v0.0.2: Major Enhancements and Bug Fixes

Overview

This PR implements significant improvements to the CHI package, including new functions, bug fixes, performance enhancements, and improved documentation. The changes focus on stabilizing core calculations, enhancing metadata generation, and improving QA processes.

Major Changes

New Functions

  • Created chi_generate_analysis_set for standardized analysis dataset preparation
  • Created chi_compare_estimates for result validation
  • Added option to generate trend templates for specific indicators
  • Implemented Wilson Score for confidence intervals with level reporting

Refactoring and Improvements

  • Renamed proto_chi_calc to chi_calc and significantly enhanced functionality
  • Renamed chi_sql_update to chi_update_sql for clarity
  • Added non_chi_byvars parameter to chi_calc for flexible aggregation
  • Updated QA functions for ACS data and RSE issues

Bug Fixes

  • Fixed several issues in chi_calc
  • Fixed contradictory warnings/errors with race3 categorization
  • Fixed issues with global variable declarations

Documentation

  • Added initial vignette for Prevalence/Proportion calculations
  • Improved function documentation with roxygen2 headers
  • Enhanced README

Maintenance

  • Added basic testthat tests
  • Updated NAMESPACE with proper imports
  • Properly declared global variables in a single file / location
  • Improved metadata generation process
  • Fixed function namespace qualification issues

Version

Bumped to version 0.0.2

v0.0.1

07 Mar 00:10

Choose a tag to compare

v0.0.1 Pre-release
Pre-release

Initial release