Releases: PHSKC-APDE/apde.chi.tools
v2026.0.2
v2026.0.1
Minor updates from 2026.0.0
What's Changed
- FIX chi_compare_estimates by @dcolombara in #58
- FIX #48 update documentation for chi_update_sql by @dcolombara in #57
- Dev by @rwbuie in #59
Full Changelog: v2026.0.0...v2026.0.1
v2026.0.0
Passed devtools::check(): 0 errors ✔ | 0 warnings ✔ | 0 notes ✔
Replicated 2023 Birth CHI analysis perfectly (and quickly!)
- 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
-
Refactor
chi_calc()to allow use of BRFSS imputationLists and for massive speed improvements when run on multicore machines -
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
- Fix when instructions request years that are not available
- Provides a warning and drops the row of the instructions
- 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()
- Updated wiki / vignettes
Full Changelog: v2025.0.3...v2026.0.0
v2025.0.3
v2025.0.2
New Functions
chi_suppress_results()- applies primary and secondary suppressioncheck_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.datachi_get_proper_pop()- optimize to run faster by batching pulls from rads::get_population.chi_get_proper_pop()- addis_charsparamater 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 NAchi_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
- Critical fix to update to latest CHI standards by @dcolombara in #26
- fucntion to check if latest version installed by @dcolombara in #29
- chi_suppress_results created by @dcolombara in #28
- optimize chi_get_proper_pop function by @dcolombara in #27
- abstract check for latest version to a function by @dcolombara in #31
- chi_calc validation & address devtools::check by @dcolombara in #32
- Bump to v2025.0.2 by @dcolombara in #33
Full Changelog: v2025.0.1...v2025.0.2
v2025.0.1
v2025.0.0
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-injurieschi_chars_injury: batch produce CHI CHARS counts of injurieschi_compare_estimates: create estimate comparison for metadatachi_generate_analysis_set: creates DT of analysis set for multiple CHI analysischi_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_colsnow can retrieve metadata (set metadata = TRUE)chi_calcnow determines whether it should use WA or KC data based ontab == '_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
- Update functions for rates by @dcolombara in #14
- Dev updates off lcod by @rwbuie in #17
- update adding_unit_tests by @rwbuie in #18
- chi_calc determination of WA State data improved by @dcolombara in #21
- Chars tools by @dcolombara in #20
- FIXED chi_generate_metadata valid_years by @dcolombara in #19
- Adding unit tests and more complex testing data by @rwbuie in #22
- add keyring to Suggests in DESCRIPTION by @dcolombara in #23
- 2025.0.0 update by @rwbuie in #24
New Contributors
Full Changelog: v0.0.2...v2025.0.0
v0.0.2
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_setfor standardized analysis dataset preparation - Created
chi_compare_estimatesfor 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_calctochi_calcand significantly enhanced functionality - Renamed
chi_sql_updatetochi_update_sqlfor clarity - Added
non_chi_byvarsparameter tochi_calcfor 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
testthattests - 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
Initial release