-
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
New agg_tf
function for calculating total fertility
#70
Conversation
… for numeric input ages
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.
Looks good to me!
#' fertility rates and (2) she survives through the end of the age span. | ||
#' Preston pg 95. | ||
#' | ||
#' This is different from an age-specific fertility rate (ASFR) or a crude birth |
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.
This is helpful.
@@ -0,0 +1,37 @@ | |||
library(data.table) | |||
|
|||
# test dataset from Preston pg 96 Box 5.1 |
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.
This is a good idea
Describe changes
This adds a new function
agg_tf
for calculating total fertility measures. This builds off of an old PR from Claudia's fork #55. I mainly just resolved some remaining comments from that first PR and updated to the newerhierarchyUtils::agg
arguments.What issues are related
Addressed remaining comments from previous PR
Related to #19
Checklist
Packages Repositories
ihmeuw-demographics
R packages?devtools::check()
locally?devtools::document()
?ihmeuw-demographics
code style?docker-base
ordocker-internal
? If so follow directions in those repositories to rebuild and redeploy the images.Details of PR
None