Learn R Programming

migest (version 1.8.5)

net_from_lifetime: Estimate net migration from lifetime migration data

Description

Estimate net migration from lifetime migration data

Usage

net_from_lifetime(
  .data,
  in_migrant = "in_migrants",
  out_migrant = "out_migrants",
  year = "year",
  in_survival,
  out_survival
)

Arguments

.data

A data frame with two rows with the total number of lifetime in- and out-migrants in separate columns. The first row contains totals at the first time point and second row at the second time point.

in_migrant

Character string name of column containing in-migrant counts. Default `code"in_migrants"`.

out_migrant

Character string name of column containing out-migrant counts. Default `code"out_migrants"`.

year

Character string name of column containing time points. Default `code"year"`.

in_survival

Survival probability for foreign migrants in region

out_survival

Survival probability for native migrants outside of region

Value

Data frame with estimates of net migration