Learn R Programming

popReconstruct (version 1.0-6)

net.number.migrants: Calculate Net Number of Migrants

Description

Calculates the net number of migrants from two population vectors and the Leslie matrix describing the amount of change attributable to fertility and mortality.

Usage

net.number.migrants(n1, n2, L)

Arguments

n1

Population vector at time \(t\).

n2

Populatin vectors at time \(t+\delta\).

L

The Leslie matrix (see make.leslie.matrix).

Value

Vector of net number of migrants in each age group to the population between times \(t\) and \(t+\delta\).

Vignettes

burkina-faso-females

Details

This function is used in the calculation of the average annual net number of migrants. See the vignette burkina-faso-females for an example of its use.

See Also

popRecon.ccmp.female, make.leslie.matrix

Examples

Run this code
# NOT RUN {
## Can take several minutes to run

# }
# NOT RUN {
example(popRecon.ccmp.female)

example(make.leslie.matrix)

net.number.migrants(n1 = pop.input.mat[,k]
                                ,n2 = pop.input.mat[,k+1]
                                ,L = Lk)
# }

Run the code above in your browser using DataLab