Skip to content

2025.0.0 update#24

Merged
rwbuie merged 73 commits intomainfrom
dev
Apr 14, 2025
Merged

2025.0.0 update#24
rwbuie merged 73 commits intomainfrom
dev

Conversation

@rwbuie
Copy link
Copy Markdown
Collaborator

@rwbuie rwbuie commented Apr 14, 2025

Dev passes existing tests. Pushing to main for 2025.0.0 release.

dcolombara and others added 30 commits March 7, 2025 14:47
 - new validations
 - built in more tweaks for race3 headaches
 - dropped dependency on tidyr::crossing
 - progress meter
 - better documentation / comments
 - improved roxygen2 header
 - simplified / tidier code, but same fundamental logic / structure
 - file is now called chi_generate_instructions_pop
* Improved documentation with detailed Roxygen comments
* Added input validation with helpful error messages
* Clearer section comments
* Replaced tidyr::crossing with data.table
* progressr progress tracking
* Standardized variable naming
* Improved work with categorical variables and crosswalks
 - previous logic for dropping when cat2_group
   was NA / 'NA' and cat1 group NOT NA / 'NA'
   was flawed
 - just rename because now fully functional
 - changed references to 'key' column to 'mykey'
   because `key` is reserved (or maybe should
   be reserved) by data.table
 - drop proto prefix because fully documented & updated
 - now use `catnum`, `catgroup`, and `catvarname` in a standard way across functions
 no longer a valid argument for chi_generate_tro_shell
start.year no longer a valid argument chi_generate_tro_shell
update adding_unit_tests
dcolombara and others added 27 commits April 10, 2025 15:48
 previously used the overall max start date for
 a given indicator_key to identify missing data.
 This was flawed, because it needs to be row wise.
 changed max to pmax ensure it is a parallel
 comparison (i.e., by rows)
 instructions have 'race3_hispanic' because
 it is a distinct variable. It is however
 reported in the results as 'race3', so, when
 comparing the results to the instructions to
 identify missing data, we need need to change
 back to race3_hispanic (for cat2==Ethnicity)
 - passed all tests
 - will be used with chi_chars_ccs &
   chi_chars_injury & possibly other f()
 - both now use chi_keep_proper_ages to keep
   only relevant chi_age values
 - previous was dendent upon one of the byvars
   being 'wastate', but it's possible that in
   the future we'll be asked to perform a crosstab
   for WA State data, e.g., sex and race. In that
   case neither byvar would be wastate.
 - now checks if the tab is _wastate, which shoud
   be more robust
…ng wrong with how data tables (names not properly exporteD)

attempted providing specific dates to data exported from helper.R

chenged data source name in chi_generate_analysis_set set to "generic_test" to match test set used.
 - '2022-2022' is now '2022'
 - enure final output columns have desired order
 - filtering by age doesn't make sense if
   cat1 | cat2 are not Age, so return entire
   unfiltered dataste
chi_calc determination of WA State data improved
Adding unit tests and more complex testing data
 - used in helper.R, but never declared
add keyring to Suggests in DESCRIPTION
…nd if they fail, their depencies should be fixed at the package level)

many of these tests are failing or throwing errors, but this function is highly specific and probably doesn't need to be fixed for initial release.
@rwbuie rwbuie merged commit d4d8849 into main Apr 14, 2025
@rwbuie rwbuie deleted the dev branch April 14, 2025 23:42
@rwbuie
Copy link
Copy Markdown
Collaborator Author

rwbuie commented Apr 14, 2025

dev deleted so new dev branch can have clean commit history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants