P9 Mobility
Planned plugin: emigration abroad, moves between territorial units, return and immigration, through the kernel's moves. Later; its contract is written for 1.0, with no plugin.
In development
This plugin is planned for a later release; its contract is written for 1.0, with no plugin. This page describes its design; names and details may still change until it ships, when its generated model description replaces this page.
Status: Later; its contract is written for 1.0, with no plugin. Version 0.1 ships no official plugin.
Purpose
Mobility decides who emigrates abroad, who moves to another territorial unit, which unit, who comes back and who arrives from abroad. It sends the kernel a destination unit, never a dwelling: where a mover lives within the unit belongs to Residence and households.
State and owned attributes
A person's place in the population is the kernel's: whether she is in the simulated domain or abroad, and her territorial unit. An emigrant stays in the registry, abroad, with her links. A later minor version of the contract adds a nationality, owned by Mobility and inherited from the parents.
Processes and their order within the step
Mobility runs in the migration phase, which by default comes after death and before union in phases.order.
- Emigration is drawn first, on the
emigrationpoint. On an emigration, the kernel marks the person as abroad. - For the others, a move to another unit is drawn on the
internal_migrationpoint. - A mover's destination unit is chosen by a conditional logit, with a constant per destination and the distance.
- The move is a request to the kernel to change the person's unit, with the reason
migration; the kernel applies it at the barrier. - From 1.1, a person abroad may return, drawn on a
returnpoint keyed by the time since emigration; the kernel then readmits her. - Immigrants enter as new people created by Mobility, with the starting state that each contract declares for an entrant.
The distance between units comes from a pipeline table of distances or travel times between units, with its method declared. Which minors move with a migrant is not decided yet. Which processes apply to people abroad is not decided yet.
Events emitted
Emigration, with no payload.
Moves, returns and arrivals are requests to the kernel, which journals them.
Contract
Mobility provides official/Migration, version 1. The contract is coupled to the kernel: a major change of it is a major change of the kernel. It is written for 1.0, with no plugin: the conformance suite tests it with a stand-in emitter.
| Item | Kind | What it is |
|---|---|---|
Emigration | event | the person leaves the simulated domain for abroad |
emigration | modulation point, hazard | emigration abroad |
internal_migration | modulation point, hazard | a move to another territorial unit |
return | modulation point, hazard | return from abroad; added by a minor version in 1.1 |
Its residence reasons are all five reasons of the residence vocabulary: migration, union_formation, union_dissolution, household_change and dwelling_retired. The return point has no default: a scenario that uses it declares its table.
Parameters
- Emigration and internal migration: hazards. Each mobility rate declares its spatial unit and period.
- Destination choice: a constant per destination unit and a distance coefficient, over the table of distances between units.
- Return: a hazard, by time since emigration.
Data needed from the pipeline
Rates of internal migration and emigration, with their spatial unit and period; the table of distances or travel times between units; origin–destination matrices where they exist, for the destination choice.
Mobility is compared with censuses through an observation model that follows census rules: migration over the lifetime and over each recent period are separate outputs, never derived from one another, and emigrants are those reported by a household that stayed. The count of internal migrants includes every change of residence that crosses an administrative boundary, whatever its reason, including the moves of a union.
Data format
- Emigration and internal migration hazards:
rate.hazard2.0; keyquantity,territory_unit,sex,age_lo,period_start_date. The base values ofemigrationandinternal_migration. - Return hazard: schema not fixed yet. Keyed by the time since emigration; the base value of
return. - Territorial units:
territory.unit1.0; keyunit_id. The tree of units, withparent_unit_id,level,level_name. - Distances between units: no published schema yet. An origin unit, a destination unit, and a distance or a travel time, with its method declared.
- Origin–destination matrices: no published schema yet. Where they exist.
Columns of every rate table, in order: quantity, territory_unit, sex, age_lo, period_start_date, period_start_date_precision, age_hi, period_end_date, period_end_date_precision, value, unit, native_step. The first five are the key.
sex is female, male or all; age_lo and age_hi are ages in completed years, age_hi empty for an open last band; dates are full ISO dates, each with its precision (day, month or year). unit is a unit of the engine's unit list, and native_step (day, week, month or year) the duration the value was computed on; the kernel converts a hazard over the actual length of each step.
The role names are provisional.
Each table is registered with cohortix-data register and bound to a table role in the scenario's [data.bindings]; see Bring your own data.
Reads
- From the kernel: age, territorial unit, and whether the person is in the domain or abroad.
- From Activity and time budget, the activity role.
- Wealth: the kernel's wealth quintile loaded at the start, and later that of Residence and households.
Variants
No variant is named yet.
Policies that can modulate it
Policies act on emigration and internal_migration. A policy on return is a return shock.
P8 Supply and care-seeking
Planned plugin: service places such as health facilities, with their quality, price and stocks, and the choice of a place, or of no care, for each care need. Planned for 1.1.
P10 Residence and households
Planned plugin: households as collective entities, and every housing decision: the dwelling each mover goes to, the people who move together, fostering and household splits. Later.