Skip to content
Skip to Content

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.

The space-time cube of the site: the map as the floor, with a village as unit A and the town as unit B, and time rising. One path stays in unit A and rises straight. One moves from unit A to unit B: the path leans across the map. One emigrates: it leaves the map through its wall, marked by an ochre chevron; a dashed line outside the wall marks her time abroad; she then returns through the same wall, with an ochre chevron, back to unit A. A new path arrives from abroad and enters the map, with an ochre chevron, into unit B.The space-time cube of the site: the map as the floor, with a village as unit A and the town as unit B, and time rising. One path stays in unit A and rises straight. One moves from unit A to unit B: the path leans across the map. One emigrates: it leaves the map through its wall, marked by an ochre chevron; a dashed line outside the wall marks her time abroad; she then returns through the same wall, with an ochre chevron, back to unit A. A new path arrives from abroad and enters the map, with an ochre chevron, into unit B.
Mobility moves people between territorial units, out of the simulated domain and back, and brings new people in. It sends a unit, never a dwelling.

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.

  1. Emigration is drawn first, on the emigration point. On an emigration, the kernel marks the person as abroad.
  2. For the others, a move to another unit is drawn on the internal_migration point.
  3. A mover's destination unit is chosen by a conditional logit, with a constant per destination and the distance.
  4. 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.
  5. From 1.1, a person abroad may return, drawn on a return point keyed by the time since emigration; the kernel then readmits her.
  6. 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.

ItemKindWhat it is
Emigrationeventthe person leaves the simulated domain for abroad
emigrationmodulation point, hazardemigration abroad
internal_migrationmodulation point, hazarda move to another territorial unit
returnmodulation point, hazardreturn 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.hazard 2.0; key quantity, territory_unit, sex, age_lo, period_start_date. The base values of emigration and internal_migration.
  • Return hazard: schema not fixed yet. Keyed by the time since emigration; the base value of return.
  • Territorial units: territory.unit 1.0; key unit_id. The tree of units, with parent_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.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.