Learn R Programming

migest (version 1.3)

rc9.fund: Fundamental Parameters for Rogers-Castro Migration Schedule

Description

Set of fundamental parameters suggested by Rogers and Castro (1981).

Usage

data(rc9.fund)

Arguments

Details

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$$ Can be copied and altered to illustrate the effect of parameters.

References

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

Examples

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

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

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

Run the code above in your browser using DataLab