rc9: Rogers-Castro Migration Schedule

Description Usage Arguments Details 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

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.

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.

Value

Vector of values of M(x)

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 May 29, 2017, 11 a.m.

Search within the migest package
Search all R packages, documentation and source code