rc9: Rogers-Castro Migration Schedule

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/rc9.R

Description

Provides the Rogers-Castro schedule,

M(x) = a_{1} \exp[-α_{1}x] + a_{2} \exp [ α_{2}(x-μ_{2})- \exp [ λ_{2}(x-μ_{2}) ] ] +c

for a given set of parameters and ages.

Usage

1
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.

Author(s)

Guy J. Abel

References

Rogers, A., and L. J. Castro. (1981). Model Migration Schedules. IIASA Research Report 81 RR-81-30

See Also

rc9.fund

Examples

1
2
3
4
5
6
7
8
# single age groups
x <- 1:100
m <- rc9(x, param = rc9.fund)
plot(x, m, type="l")

# 5 year age groups
m <- rc9(x, param = rc9.fund)
plot(x, m, type="l")

migest documentation built on Feb. 6, 2018, 1:02 a.m.