2026-07-15
Absent from Chronic aims to demonstrate a responsible use of AI in reproducible research and emerging tools for collaboration in data science. We encourage the use of AI-assistants to interrogate our research artefacts.
| Role | Who | Contributes | Receives |
|---|---|---|---|
| Data Scientist | Andriy Koval | Delivers on the request — pipeline, analysis, reporting | A request precise enough to be answerable, and infrastructure that holds |
| Researcher | Marc-André Blanchette | Formulates the information request and judges whether the answer is scientifically meaningful | An analytic product built to the question actually asked |
| Support | Oleksandr Koval | DevOps: environments, harnesses, reproducible builds | Mentorship in data science and analytics |
Each participant gives what they hold and takes what they lack. The project is the medium in which that exchange is tested.
Absent from Chronic Project:
What chronic conditions are related to productivity loss?
What predictors survive the LASSO penalty?
Here’s a research proposal — address this information request.
How do chronic conditions contribute to the loss of productivity?
The Loss of Productivity (LOP) module of the Canadian Community Health Survey (CCHS) asks respondents to report the number of days they were absent from work in the previous three months for any health reason, including chronic conditions.

Chronic conditions are not rare among working Canadians — they are ordinary.
63,843 respondents in the analytic rectangle, representing — once the pooled survey weights are applied — 17,844,913 employed Canadians aged 15–75.
Back problems reach roughly 17%, high blood pressure and migraine near 10%, and the ranking barely moves between the 2010–2011 and 2013–2014 cycles.
A condition carried by one worker in six is a workforce question, not only a clinical one.
| # | Objective | Delivered as | Proposal § |
|---|---|---|---|
| 1 | Measure absenteeism and its chronic-condition share | Outcome and sensitivity outcome, both from the LOP module | 4.1 |
| 2 | Establish which factors predict absenteeism, adjusted | LASSO selection, then negative binomial estimation | 5.4–5.5 |
| 3 | Test whether predictors differ by condition | One model per chronic condition | 5.7 |
| 4 | Test whether predictors differ by sex | Female and male models, compared | 5.9 |
| 5 | Make the whole chain re-runnable | Reproducible script, raw import to final tables | 6 |
Objectives 1–4 are stated as quantities to be estimated, not as accuracy targets. Objective 5 is what makes the other four checkable by someone else.

| Domain | Included | Excluded | Total | Representative examples |
|---|---|---|---|---|
| Exposure | 16 | 1 | 17 | Arthritis Back problems Mood disorder Migraine |
| Facilitating | 11 | 1 | 12 | Household income Work schedule Occupation Work stress |
| Needs | 10 | 0 | 10 | Self-perceived health Injured past 12 months Needs help: housework |
| Predisposing | 12 | 1 | 13 | Age group Sex Education Immigration status |
Candidate counts by Andersen domain. Exclusions are evidentiary, not convenience: cc_copd is asked only of respondents aged 35+, has_family_doctor is optional content missing outside Ontario in 2010–2011, and dhhgage duplicates the age recode already in the set.



What the diagnostics say
Count nature — days absent is a non-negative integer. log1p and sqrt can be made to look Gaussian, but they distort the mean–variance relationship and complicate back-transformation. A count-native likelihood preserves interpretability.
Overdispersion — the heavy right tail and the gap between P90 and P99 put variance far above the mean. Poisson assumes they are equal; the negative binomial adds a dispersion parameter that absorbs the excess. Without it, standard errors are artificially narrow.
Excess zeros from a dual process — 94.3% of the sample reports zero chronic-absence days, and those zeros are not all alike.
How the model is built — two parts
Part 1 · Inflate (logistic) — the probability of being a structural zero: a worker who could not have generated chronic-absence days at all.
Who is at risk of any absence?
Part 2 · Count (negative binomial, log link) — the expected number of days among those at risk, with dispersion parameter .
Among those at risk, what drives higher day counts?
Treating both kinds of zero alike under a plain NB underestimates and biases the count coefficients upward. The mixture separates the two questions inside one model.
The proposal’s §5.4 names four models. They are not four fits — they are two fits read at two penalties each. cv.glmnet returns an entire path; lambda.min and lambda.1se are two points on it.
| Model | Role | Self-perceived health | Penalty rule | Columns offered | λ | Columns kept |
|---|---|---|---|---|---|---|
| Model 1 | Primary | excluded | lambda.1se |
88 | 0.1936 | 10 |
| Model 2 | Secondary | included | lambda.1se |
100 | 0.2128 | 12 |
| Model 3 | Sensitivity | excluded | lambda.min |
88 | 0.0301 | 46 |
| Model 4 | Sensitivity | included | lambda.min |
100 | 0.0275 | 57 |
The two lambdas
lambda.min minimises cross-validated deviance — permissive, keeps everything that helps prediction.
lambda.1se is the largest penalty within one standard error of that minimum — parsimonious, keeps only what CV can defend.
The perceived-health toggle
Three self-rated health measures are withheld from Models 1 and 3 by design: the proposal expects them to absorb signal carried by the individual conditions.
Withholding them makes the design matrix 88 columns wide; offering them makes it 100.
Because the penalties are read off one path, the parsimonious and permissive specifications are nested, not merely similar.

g2 · Variable Selection with Lasso (model-1)
Both curves are shallow to the left of their minima. That flatness is what makes the one-standard-error rule bite: across a wide band of penalties, cross-validation genuinely cannot tell the models apart.

g3 · Variable Selection with Lasso (model-1)
Same 48,967 respondents in both panels; they differ only in what was offered.
Needs and Exposure survive furthest to the right — they are the last to be shrunk to zero.
| Model | Perceived health | Penalty | Offered | Retained | Variables |
|---|---|---|---|---|---|
| Model 1 | excluded | lambda.1se |
88 | 10 | 10 |
| Model 2 | included | lambda.1se |
100 | 12 | 9 |
| Model 3 | excluded | lambda.min |
88 | 46 | 38 |
| Model 4 | included | lambda.min |
100 | 57 | 42 |
One expectation is inverted. The proposal reasoned that offering self-rated health would shrink the retained set. Absorption does occur — the exposure domain loses variables — but the three perceived-health measures themselves enter, and they more than replace what they displaced.
The proposal asks the same selection procedure to run twice more: inside each chronic condition (§5.7–5.8) and separately for women and men (§5.9–5.10).
Model 2 — condition-specific. Seventeen subgroups, one model each. Reading down a column gives one disease’s verdict; reading across a row finds variables that predict absence whatever the condition — needing help with errands, meals and housework, mood disorder, migraine, back problems, marital status.

Model 3 — sex-stratified. Female against male within each of the four specifications. Under the parsimonious penalty both sexes converge on a short shared list; only under lambda.min does the divergence Section 5.9 asks about become visible — and much of it sits in the Predisposing and Facilitating domains, not in the diseases.

| Model | Terms | Held-out C | McFadden | RMSE | Terms when selection re-runs per fold |
|---|---|---|---|---|---|
| Model 1 | 10 | 0.613 | 0.019 | 4.02 | 8 – 38 |
| Model 2 | 15 | 0.630 | 0.027 | 3.98 | 15 – 31 |
| Model 3 | 67 | 0.640 | 0.021 | 4.23 | 68 – 83 |
| Model 4 | 81 | 0.653 | 0.027 | 4.46 | 81 – 91 |


Lane 0 · Metadata
codebook-variable-labels.csv codebook-value-labels.csv codebook-cycle-comparison.csv codebook-research-vars-check.csv
Lane 1 · Ferry
cchs-1.sqlite — cchs_2010, cchs_2014 cchs-1-ferry/*.parquet INPUT-manifest.md
Lane 2 · Ellis
cchs-2.sqlite — cchs_analytic, sample_flow cchs_analytic.parquet (63,843 × 70) sample_flow.parquet CACHE-manifest.md
Lane 3 · Test
24 assertions — artifact existence, SQLite-to-parquet parity, data quality, sample-flow validation pipeline-validation.dcf
Version control is not “the code is in Git.” It is a chain in which every displayed number traces to a script, every script to a declared input, and every change to a dated record. Let’s exemplify with specific scenario: on 2026-08-01 the pipeline admitted a variable it had previously reported as unavailable.
| # | Hop | Artifact | What the record says |
|---|---|---|---|
| 1 | Claim retracted | CACHE-manifest.md |
“No house-ownership construct exists in the PUMF.” That claim was wrong and has been retracted. |
| 2 | Input verified | INPUT-manifest.md |
DHH_OWN present in both cycles; 99.74% coverage; every province × cycle cell above 99.3% |
| 3 | Hazard declared | INPUT-manifest.md |
Encoding differs by cycle — 2010–11 stores not-stated as system missing, 2013–14 as codes 7 / 8 / 9 |
| 4 | Transformation written | 2-ellis.R |
1 → Owner, 2 → Renter, everything else → NA — explicitly not != 1 ~ "Renter" |
| 5 | Contract updated | CACHE-manifest.md |
New row home_ownership ← DHH_OWN; Owner 50,101 / Renter 13,576 |
| 6 | Shape restated | pipeline.md |
Analytic table 63,843 × 70 — 70 columns since the admission; 69 before |
| 7 | Re-verified | 3-test-ellis-cache.R |
Lanes 0–3 re-run; 24 assertions, 0 failed |
All seven artefacts are mirrored into the site’s Appendix, so the trace can be checked without visiting the source repository. The change was not finished when the recode compiled — it was finished when the manifest, the column count, and the assertion suite all agreed again. The fidelity audit’s current status is reported as WARN, not PASS, because a check that never fails is not a check.
Pipeline Orchestra
Engineering: raw data → trustworthy rectangle
Agent @pipeline-engineer
Writes to manipulation/
Flow source → ferry → ellis → served
Governs transport, transformation, and validation of incoming data
Accountability INPUT-manifest records what arrived; CACHE-manifest records what is served
Composing Orchestra
Reporting: clean data → analytical artifact
Agent @report-composer
Writes to analysis/
Flow contract → .R laboratory → .qmd publication
Governs monothematic engagement: one question, one folder, one artifact family
Accountability report-contract anchors scope; artifacts are numbered and inventoried
Publishing Orchestra
Publishing: existing artifacts → curated site
Agents @interviewer + @writer
Writes to _frontend-N/
Flow RAW → EDITED (content/) → PRINTED (_site/)
Governs editorial selection, audience register, and protocol fidelity
Accountability TRANSFORM_LOG records every change; fidelity report is the gate
Three agent harnesses, one per workspace directory, each with its own agent, its own flow, and its own accountability artefact. They are described at length in a companion deck, Minding the Agents, which walks each orchestra through its full cycle.
What predictors exist, how each relates to the outcome on its own, which survive the penalty, and what they estimate once fitted among the survivors — five panels, one row order, one x window.

g11 · Story 1: Reading the Four Models (eda-81)
A variable a specification declined has no estimate in its panel — selection is therefore visible without spending a column on it. A blank row was offered and refused; a grey cross was never shown. The axis is log10: the penalty acts on , so RR = 0.5 and RR = 2.0 cost it exactly the same.
Limitations
Future Directions — in the order the argument implies
The first three are each one script on the existing frame; the fourth needs one Ellis pass.
What cannot be fixed from here: the direction of the association. That needs longitudinal linkage or an administrative absence record — not a better estimator.
| Role | Who | Contributes | Receives |
|---|---|---|---|
| Data Scientist | Andriy Koval | Delivers on the request — pipeline, analysis, reporting | A request precise enough to be answerable, and infrastructure that holds |
| Researcher | Marc-André Blanchette | Formulates the information request and judges whether the answer is scientifically meaningful | An analytic product built to the question actually asked |
| Support | Oleksandr Koval | DevOps: environments, harnesses, reproducible builds | Mentorship in data science and analytics |
Three collaborators, three institutions, three lanes. Nobody reports to anybody. What holds the project together is not authority but written interfaces — the proposal, the accord, and the publishing contract.
data-private/ exclusion is a control rather than a housekeeping preference.Questions? Comments?
The authors thank Statistics Canada for the Canadian Community Health Survey, and the Canadian Research Data Centre Network for access to the Public Use Microdata Files.
The New Model of Communication

Lies that helps us see the truth


Absent from Chronic | Project overview