Skip to content
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

Additional race stratification #57

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Additional race stratification #57

wants to merge 14 commits into from

Conversation

clchand23
Copy link
Collaborator

@clchand23 clchand23 commented Dec 20, 2024

New code allows us to specify the race categories for our analysis using race.level in build_epistats() function.

race.level is a list of race and ethnicity categories that need to match case-sensitive race and ethnicity values in ARTnet. These include "black", "hispanic", "white", "other", "asian", "ai/an", "mult", "nh/pi". Categories can be combined within the list.

Examples:

Default (3 categories)
race.level = list("black", "hispanic", c("white", "other")

Expand to 4 categories
race.level = list("black", "hispanic", "white", "other")

Specify other race groups (Note: when specifying race groups of "asian", "ai/an", "mult", "nh/pi", the "other" race group will be any other group apart from these. When specifying "other" along with "black", "hispanic", and "white", then "other" would include the race groups of "asian", "ai/an", etc.)
race.level = list("hispanic", "asian")

Outstanding items:

  • Build documentation (getting roxygen error)

Add section that stratifies race into 4 categories
Add new race stratification code
Change from race.cat3 to race.cat throughout
Update EpiStats to generalize race categorization for ARTnet network estimation by allowing user to set `race.level` to a list or vector of race and ethnicity categories as described in ARTnet data (i.e., black, hispanic, white, other, ai/an, asian, mult, nh/pi)
Update NetParams to generalize race categorization for ARTnet network estimation by allowing user to set `race.level` to a list or vector of race and ethnicity categories as described in ARTnet data (i.e., black, hispanic, white, other, ai/an, asian, mult, nh/pi)
Generalize code that assigns numbered race levels

Generalize code that assigns initial HIV status
Update capitalization of race labels to work with current code
Correct code so that age is not also updated to be 1 when setting max age for asmr
Comment out language that stops function when we input multiple init.hiv.prev values
Generalize update_asmr() function
Data manipulation that adds new variables to allow for selecting "hispanic" and "other" sub-categories from ARTnet
@clchand23 clchand23 self-assigned this Dec 20, 2024
@clchand23 clchand23 requested a review from smjenness December 20, 2024 15:30
Update documentation
@clchand23 clchand23 marked this pull request as draft December 20, 2024 15:42
@clchand23
Copy link
Collaborator Author

Hi @AdrienLeGuillou, for the downstream EpiModel updates, please see this update to mod.acts.R. This was the only changed needed.

@AdrienLeGuillou
Copy link
Member

For the mod.acts changes, if they are only on this function it should not cause any problem

To match DESCRIPTION on main branch
Build documentation
@clchand23 clchand23 marked this pull request as ready for review December 20, 2024 17:31
@clchand23
Copy link
Collaborator Author

Hi @AdrienLeGuillou - I was able to build the documentation. I think everything is ready for review now. Thanks!

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