Moultrie's proposal for correction of Children Ever Born in five-year grouped ages.
Moultrie(data, ...)
data.drame. It contains at least three variables: five-year grouped ages, number of childs and Children Ever Born (CEB).
Arguments to be passed to dplyr::select
, i.e., five-year grouped ages, number of childs and Children Ever Born.
Moultrie
returns a data.frame with corrected childs for each number of Children Ever Born and five-year grouped ages.
moultriepopstudy
# NOT RUN {
CEB_data <- tidyr::gather(CEB, ages, childs, -Children_Ever_Born)
results <- Moultrie(CEB_data, ages, childs, Children_Ever_Born)
tidyr::pivot_wider(results, names_from=age, values_from=childs)
# }
Run the code above in your browser using DataLab