-
Notifications
You must be signed in to change notification settings - Fork 4
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
Simplify and generalise get_exposure_ages
#70
Labels
enhancement
New feature or request
Comments
what if the user has data as age and not birth year ... is that step skipped? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As I understand it,
get_exposure_ages
just generates the ages of individuals within a serological sample. At the moment, it does the following:min(serodata$birthyear)
But what if the data a user supplies does not have samples for all ages? Also, the requirements on the user are somewhat implicit, as the data frame needs to have columns named in a certain way. I'd propose changing this to:
create_exposure_ages <- function(birthyears, survey_year)
where
birthyears
is a vector of birth years.The text was updated successfully, but these errors were encountered: