Skip to content
Skip to Content

P7 Norms

Planned plugin: the influence of the people met in shared places on the adoption of a contraceptive method, read from the share of a place's members who use one. Planned after 1.0.

In development

This plugin is planned after 1.0. This page describes its design; names and details may still change until it ships, when its generated model description replaces this page.

The map seen from above, with villages, a river and the town. One place in the town, outlined, and four members living in the village and in the town, each drawn as a dot and joined to the place by a line. Two members use a method. The weight of each line is her attendance, the days of the week she goes to the place. The place carries the share of members using a method, weighted by attendance in one variant. One member, ringed, reads that share; no line joins two members.The map seen from above, with villages, a river and the town. One place in the town, outlined, and four members living in the village and in the town, each drawn as a dot and joined to the place by a line. Two members use a method. The weight of each line is her attendance, the days of the week she goes to the place. The place carries the share of members using a method, weighted by attendance in one variant. One member, ringed, reads that share; no line joins two members.
Norms reads the share of a place's members who use a method, and turns it into a factor on a member's adoption. No link between members is stored.

Status: Planned after 1.0. Version 0.1 ships no official plugin.

Purpose

Norms models the influence of the people a person meets in the places she shares with them: her household, school, workplace, market, place of worship or community. For each of her places it reads the share of members who use a method, and turns it into a factor on her adoption of a method. The kernel keeps no contact layer: no link between two members is ever stored.

State and owned attributes

In its first two variants, Norms owns no column of a person, so it has no phase of its own. It owns the place-of-worship place type and its memberships, fixed at the start of the run from each person's religion.

Processes and their order within the step

Norms has no phase: its factor is computed when the plugin that owns the risk evaluates it.

  1. For each place the person belongs to, Norms reads the share of the place's members who use a method. It reads it on the state of the last completed barrier, so every reader in a step sees the same share.
  2. In the weighted variant, each member counts in proportion to her attendance of the place.
  3. Norms turns these shares into a factor on the person's adoption.

How the shares of places of different types are combined is not decided yet. The form of the factor is not decided yet. How the factor reaches Contraception is not decided yet. Before Residence and households exists, a person's dwelling stands for her household, unweighted.

Events emitted

Fixed with its contract.

Contract

Norms provides official/Norms (provisional name), written once Norms owns the place-of-worship type. Its items are fixed when the contract is written.

Parameters

  • Group size and the form that links the size of a group to its contacts, for each place type.

Group sizes and forms are read from pipeline tables; none ships as a default value. Attendance is not a parameter of Norms: Activity and time budget gives its value for each role, and the owner of each place type copies it onto the membership.

Data needed from the pipeline

Group sizes and the size-to-contacts form come from contact surveys, registered through the data pipeline with their data class.

Data format

  • Places of worship: place.worship 2.0; key place_id. The places Norms owns.
  • Group sizes and the size-to-contacts form: no published schema yet. From contact surveys.

Columns of every place table: place_id, place_type, name, territory_unit, lon, lat, coord_precision, capacity, candidate, opened_date, opened_date_precision, closed_date, closed_date_precision, source, source_id, licence; the key is place_id. Coordinates come only from open layers, public place sources or a user's own table, never from survey cluster points.

Membership of a place of worship comes from each person's religion, a covariate of the initial population. 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: the members of a place, the share of a place's members who satisfy a condition (optionally weighted by attendance), and counts by place type and territorial unit; from 1.1, counts of people by cohort and territorial unit.
  • The attendance of each membership, held by the owner of the place type: Schooling for the school, Activity and time budget for workplaces and markets, the provider of official/Residence for the community, and Residence and households for the household. For the place of worship, Norms copies the attendance from Activity and time budget.
  • Whether each member uses a method, from a view of Contraception.

Variants

  • Place aggregate: the share of members who use a method.
  • Aggregate weighted by attendance.

A benchmark compares the two with a stored graph of who meets whom: adoption over time, variance across realisations, time and memory. That stored graph is a comparator in a test crate only: it is never a variant of the catalogue.

Policies that can modulate it

Its modulation points, if any, are named when the plugin is built. A scenario can neutralise Norms by not activating it: Contraception then runs without its factor.

On this page

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