Learn R Programming

migest (version 1.8.5)

rc9.fund: Fundamental parameters for Rogers-Castro migration schedule

Description

Set of fundamental parameters for the Rogers-Castro migration age schedule, as suggested in Rogers and Castro (1981).

Usage

rc9.fund

Arguments

Format

A list of the parameters required by the rc9 function: $$ a_{1} = 0.02 $$ $$ \alpha_{1} = 0.1 $$ $$ a_{2} = 0.06 $$ $$ \alpha_{2} = 0.1 $$ $$ \mu_{2} = 20 $$ $$ \lambda_{2} = 0.4 $$ $$ c = 0.003 $$

Examples

Run this code
# NOT RUN {
# check format
str(rc9.fund)

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

# alter to see the effect of mu2
p1 <- rc9.fund
p1$mu2 <- 30
m1 <- rc9(x, param = p1)
plot(x, m, type="l")
lines(x, m1, lty=2)
# }

Run the code above in your browser using DataLab