-
Notifications
You must be signed in to change notification settings - Fork 7
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
Cervical cancer #1287
base: master
Are you sure you want to change the base?
Cervical cancer #1287
Conversation
…ses with proper structured manner as mixin, also remove unecessary input parameters other than self and person_id
…sed on other adult cancers
… the the chemo used
per @mmsuarezcosta, this is now ready for review. |
.when(2, p['rr_hpv_vaccinated']), | ||
Predictor('age_years', conditions_are_mutually_exclusive=True) | ||
.when('.between(0,15)', 0.0) | ||
.when('.between(50,110)', p['rr_hpv_age50plus']), |
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.
Is there a reason why this was reverted to .when('.between(50,110)', p['rr_hpv_age50plus']),
? It was suggested to have it as .when('>50'),p['rr_hpv_age50plus'])
earlier over here
# Current counts, total | ||
out.update({ | ||
f'total_{k}': v for k, v in df.loc[df.is_alive & (df['sex'] == 'F') & | ||
(df['age_years'] > p['min_age_hpv'])].ce_hpv_cc_status.value_counts().items()}) |
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.
(df['age_years'] > p['min_age_hpv'])].ce_hpv_cc_status.value_counts().items()}) | |
df_alive_females = df.loc[df.is_alive & (df['sex'] == 'F') & (df['age_years'] > p['min_age_hpv'])] | |
out.update({f'total_{k}': v for k, v in df_alive_females.ce_hpv_cc_status.value_counts().items()}) |
There is a repetition of this line of code here df.loc[df.is_alive & (df['sex'] == 'F') & (df['age_years'] > p['min_age_hpv'])]
as well as at lines 1581 and 1586. Would probably be more efficient if these conditions are not repeated
Here's a first draft of this module. I need to do another search to try to find additional data for calibration.
I couldn't upload the draft write as it was asking me to use the command line and Git LFS.