rc9: Rogers-Castro Migration Schedule

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

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")


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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.