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

Definition of age interval in get_age_group #38

Closed
1 of 4 tasks
davidsantiagoquevedo opened this issue Jan 10, 2024 · 0 comments · Fixed by #43
Closed
1 of 4 tasks

Definition of age interval in get_age_group #38

davidsantiagoquevedo opened this issue Jan 10, 2024 · 0 comments · Fixed by #43
Assignees
Labels
bug Something isn't working

Comments

@davidsantiagoquevedo
Copy link
Member

Please place an "x" in all the boxes that apply

  • I have the most recent version of linelist and R
  • I have found a bug
  • I have a reproducible example
  • I want to request a new feature

Check inputs to avoid the wrong definition of the age intervals and guarantee the condition: (max_age - min_age)%%(step+1)==0 in get_age_group().

library(vaccineff)
data(cohortdata)

cohortdata$age_group <- get_age_group(
  data = cohortdata,
  col_age = "age",
  max_val = 80,
  step = 11
)
ages <- unique(cohortdata$age_group)
sort(ages)

@davidsantiagoquevedo davidsantiagoquevedo self-assigned this Jan 10, 2024
@chartgerink chartgerink added the bug Something isn't working label Feb 12, 2024
@davidsantiagoquevedo davidsantiagoquevedo linked a pull request Feb 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants