rc9: Generate a Rogers-Castro nine-parameter migration schedule
Description
Provides the Rogers-Castro schedule,
$$ M(x) = a_{1} \exp[-\alpha_{1}x] + a_{2} \exp [ \alpha_{2}(x-\mu_{2})- \exp [ \lambda_{2}(x-\mu_{2}) ] ] +c$$
for a given set of parameters and ages.
Usage
rc9(x, param = NULL, scaled = TRUE)
Arguments
x
Vector of numbers
param
List with names matching the parameters in the age schedule
scaled
Scale estimates to sum to one across all ages, x.
Value
Returns the M(x) values from the Rogers-Castro schedule of age specific migration rate. The age range for the calculation can take any sequence of positive numbers, such as ages in single or 5-year intervals. The param argument must be a list with correct names for each parameter. See for example the rc9.fund object for an example of the naming convention.
References
Rogers, A., and L. J. Castro. (1981). Model Migration Schedules. IIASA Research Report 81 RR-81-30
# NOT RUN {# single age groupsx <- 1:100m <- rc9(x, param = rc9.fund)
plot(x, m, type="l")
# 5 year age groupsm <- rc9(x, param = rc9.fund)
plot(x, m, type="l")
# }