-
Notifications
You must be signed in to change notification settings - Fork 16
[CTIS contingency] Make themed and demographic tables #1645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
make postprocessing multinomial
capnrefsmmat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a few coding typos
|
|
||
| if ("B6" %in% names(input_data)) { | ||
| input_data$t_unusual_symptom_hospital <- input_data$B6 == 1 | ||
| input_data$t_unusual_symptom_hospital_tried <- input_data$B6 == 1 | input_data$B6 == 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I completely forgot B6 existed
Co-authored-by: Alex Reinhart <alex@refsmmat.com>
capnrefsmmat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now
Add county info to contingency tables
…hreshold Lower contingency table threshold and round sample sizes
Description
Define indicators that are not used in all cuts, mostly demographic variables. Set up themed table structure.
Indicator names are grouped by the theme (topic) they belong to. After generating estimates for all indicators sharing a region and groupby variables, indicators in each theme group are collected and saved again. Non theme-grouped files are named with "all_indicators" and themed files names contain "theme_", like "theme_vaccines".
Most important changes to review here are in
contingency_aggregate.Randcontingency_write.R.Changelog
contingency_aggregate.Rcontingency_indicators.Rcontingency_variables.Rcontingency_write.R