El_Badry {popstudy} | R Documentation |
El-Badry method
Description
The method corrects the zero parity omission error.
Usage
El_Badry(data, age, CEB, childs, req_ages = NULL)
Arguments
data |
data.drame. It contains at least three variables: five-year grouped ages, number of childs and Children Ever Born (CEB). |
age |
variable name in |
CEB |
variable name in |
childs |
variable name in |
req_ages |
optional character string that specifies the five-year grouped age to estimates the intercept. |
Value
Moultrie
returns a list with two elements: a data.frame with corrected children for each number of Children Ever Born and five-year grouped ages and a data.frame with combinations of five-year grouped age to estimate intercept, slope, and R-squared. By default, the method uses the best value of R-squared to apply the El Badry correction.
Author(s)
Cesar Gamboa-Sanabria
References
Moultrie TA, Dorrington RE, Hill AG, Hill K, Timæus IM, Zaba B (2013). Tools for demographic estimation. International Union for the Scientific Study of Population.
See Also
Examples
CEB_data <- tidyr::gather(CEB, ages, childs, -Children_Ever_Born)
results <- Moultrie(CEB_data, ages, childs, Children_Ever_Born)
CEB_data <- tidyr::pivot_wider(results, names_from=age, values_from=childs)
CEB_data <- tidyr::gather(CEB_data, ages, children, -CEB)
El_Badry(CEB_data,ages, CEB, children)