Learn R Programming

migest (version 1.3)

rc9: Rogers-Castro Migration Schedule

Description

Provides the Rogers-Castro schedule, $$M(x) = a_{1} \exp(-\alpha_{1}x) + a_{2} \exp(-\lambda_{2}(x-\mu_{2})-\alpha_{2}(x-\mu_{2}))$$ for a given set of parameters and ages.

Usage

rc9(x, param = rc9.fund, scaled = TRUE)

Arguments

x
A vector of numbers
param
A list with names match those of the schedule
scaled
Scale estimates to sum to one across all ages, x.

Value

  • Vector of values of M(x)

Details

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

See Also

rc9.fund

Examples

Run this code
# single age groups
x <- 1:100
rc9(x, rc9.fund)
plot(x, rc9(x, rc9.fund), type="l")

# 5 year age groups
x <- seq(2.5, 102.5, 5)
plot(x, rc9(x, rc9.fund), type="l")

Run the code above in your browser using DataLab