Advanced Octave A82 — Age, sex and demographic inequalities
Advanced GNU Octave with GX-TXT · Module 14
Counts tell how many people have died; to compare groups of different sizes it is also necessary to consider the population. We examine some specific rates for age and gender published by ISTAT for 2020.
A distinct source and definition
The source is ISTAT Demo, Deleted from the certificate for death, with the Annual CSV 2020. The page defines the rates per thousand inhabitants and describes the anagraphic survey. They are indicators for all causes, not mortality rates attributed to COVID-19. This survey has its own record criterion: it does not automatically replace the monthly series by date of the event used in A79–A81.
For each sex and five-year class the denominator is the corresponding resident population according to the ISTAT definition; here we use the rates already published and rounded, without inventing or reconstructing numerical denominators from the rounded rate. The frozen source and copy are documented in FONTE.md.
Publish and compare
The test uses GX-TXT dev112-P011-bis and GNU Octave 9.4.0. Import tassi_eta.m, record it and execute it. Dataset istat_demo_2020_male_rate and istat_demo_2020_female_rate are created-only: use a new Session or change IDs to repeat.
The chart compares the specific rates in the four selected groups. The horizontal axis is a category index: 1 = 50–54 years, 2 = 65–69, 3 = 80–84, 4 = 90–94. The intervals between the indices are not equal age intervals; the points are not linked.
For example, in the 80–84 year class, the file contains 73.8 deaths per thousand resident men and 47.1 per thousand resident women; they are published annual values, not exact individual odds. The values shown are aggregated and do not explain the causes of differences alone.
What can be done?
A specific rate takes into account the population of the indicated class; a total crude rate can still reflect structures by different ages. A standardized rate responds to another question and requires an explicit standard population: here we do not calculate it. Inequalities require more information on social conditions, territory, health and access to care; we do not attribute causal relationships from these only aggregate data.
Exercise
- What is the conceptual denominator of the specific rate?
- What does index 3 represent in the chart?
- Are these death rates caused by COVID?
Worked solution
- The resident population of the same age and sex class, according to the ISTAT definition, expressed by a thousand.
- Class 80–84 years.
- No: they are rates for all causes.
Other steps of this project
- Advanced Octave A75 — Dynamical systems in phase space
- Advanced Octave A81 — Geography of the waves and a 3D surface
- Advanced Octave A83 — All-cause mortality, certified COVID deaths and surveillance
- Advanced Octave A84 — A reproducible public account
- Advanced Octave A73 — Optimization landscapes and 3D trajectories
- Advanced Octave A74 — RLC response surfaces