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

Cervical cancer #1287

Open
wants to merge 250 commits into
base: master
Choose a base branch
from
Open

Cervical cancer #1287

wants to merge 250 commits into from

Conversation

andrew-phillips-1
Copy link
Collaborator

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.

@tbhallett
Copy link
Collaborator

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']),
Copy link
Collaborator

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()})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(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

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.

6 participants