Data Primer 1 — Complete Variable Reference by Section
Author
Analysis Team
Published
August 1, 2026
Mission
This document provides a complete univariate profile of every variable in the cchs_analytic analysis-ready table produced by manipulation/2-ellis.R. It serves as the canonical data reference for all EDAs and Reports in this project.
All computation lives in univariate-distributions.R (the laboratory). This document sources those chunks and presents output only. All chunk bodies are intentionally empty.
Environment
Code
# Choose to be greedy: load only what's needed# Three ways, from least (1) to most(3) greedy:# -- 1.Attach these packages so their functions don't need to be qualified:# http://r-pkgs.had.co.nz/namespace.html#search-pathlibrary(magrittr)library(dplyr) # data wranglinglibrary(tidyr) # data wranglinglibrary(forcats) # factorslibrary(stringr) # stringslibrary(purrr) # functional programminglibrary(knitr) # kable tableslibrary(kableExtra) # kable styling (striped, condensed)library(janitor) # clean_names, tabyllibrary(fs) # file system operationsrequireNamespace("arrow", quietly =TRUE) # parquet I/O
days_absent_total is the primary outcome: total workdays absent due to any health reason in the past 2 weeks (LOP module). days_absent_chronic counts only absences attributable to chronic conditions.
Table 1.1 — Summary statistics: primary and sensitivity outcomes
Variable
N valid
N missing
Mean
SD
Min
P25
Median
P75
Max
days_absent_total
63843
0
1.35
4.19
0
0
0
1
63
days_absent_chronic
63843
0
0.41
2.73
0
0
0
0
31
1.2 LOP Component Variables
The eight raw LOP components contributing to days_absent_total. Each measures days absent for a specific health reason. High missingness is structural: the LOP module is administered only to currently employed respondents who reported any absence.
Seventeen of the 19 requested chronic conditions are available in the PUMF. Two are suppressed for confidentiality (ccc_300 — other mental illness; ccc_185 — digestive disease) and are absent from this dataset. All cc_* columns are logical (TRUE/FALSE); prevalence percentages exclude missing values.
Table 2.1 — Prevalence of 17 available chronic conditions (17 of 19 from §2.2 available in PUMF)
Condition
Yes (n)
Yes (%)
No (n)
No (%)
Missing (n)
cc_asthma
Asthma
5181
8.1
58623
91.9
39
cc_fibromyalgia
Fibromyalgia
732
1.1
63051
98.9
60
cc_arthritis
Arthritis (excl. fibromyalgia)
8312
13.0
55390
87.0
141
cc_back_problems
Back problems
11524
18.1
52274
81.9
45
cc_hypertension
Hypertension
8960
14.1
54740
85.9
143
cc_migraine
Migraine
6699
10.5
57112
89.5
32
cc_copd
COPD / chronic bronchitis / emphysema
1201
2.8
41487
97.2
21155
cc_diabetes
Diabetes
3043
4.8
60771
95.2
29
cc_heart_disease
Cardiovascular / heart disease
1776
2.8
61973
97.2
94
cc_cancer
Cancer (any type)
706
1.1
63088
98.9
49
cc_ulcer
Intestinal / stomach ulcer
1441
2.3
62309
97.7
93
cc_stroke
Stroke
248
0.4
63569
99.6
26
cc_bowel_disorder
Bowel disorder (Crohn’s / colitis / IBS)
2950
4.6
60826
95.4
67
cc_fatigue_syndrome
Chronic fatigue syndrome (CFS)
551
0.9
63226
99.1
66
cc_chem_sensitivity
Multiple chemical sensitivities (MCS)
1670
2.6
62081
97.4
92
cc_mood_disorder
Mood disorder (depression / bipolar)
4232
6.6
59548
93.4
63
cc_anxiety
Anxiety disorder (phobia / OCD / panic)
3485
5.5
60285
94.5
73
Note: Two conditions from §2.2 are absent from the PUMF and not shown: other mental illness (ccc_300) and digestive disease (ccc_185). Both require RDC access.
3. Predisposing Variables
Predisposing variables characterise the respondent’s socio-demographic background. Student status (sdcdgstud) is suppressed in the PUMF and renders as all-NA. dhhdfc12p (children ≥ 12 yrs) has no PUMF equivalent and is absent. See Variable Inclusion §4 for full traceability.
Code
pred_discrete_vars <-intersect(c("age_group_3", "sex", "marital_status", "household_size","education", "immigration_status", "visible_minority", "home_ownership","living_arrangements"),names(ds0))t_pred_freq <-lapply(pred_discrete_vars, function(v) summarize_discrete(ds0, v))names(t_pred_freq) <- pred_discrete_vars# Raw PUMF age group code — treated as ordered factor for frequency tableif ("dhhgage"%in%names(ds0)) { dhhgage_levels <-sort(unique(na.omit(ds0[["dhhgage"]]))) dhhgage_factor <-factor(ds0[["dhhgage"]], levels = dhhgage_levels) tmp_freq <-summarize_discrete(data.frame(dhhgage = dhhgage_factor), "dhhgage") dhhgage_brackets <-c("2"="15\u201317 yrs", "3"="18\u201319 yrs", "4"="20\u201324 yrs","5"="25\u201329 yrs", "6"="30\u201334 yrs", "7"="35\u201339 yrs","8"="40\u201344 yrs", "9"="45\u201349 yrs", "10"="50\u201354 yrs","11"="55\u201359 yrs", "12"="60\u201364 yrs", "13"="65\u201369 yrs","14"="70\u201374 yrs", "15"="75\u201379 yrs" ) t_dhhgage_freq <-data.frame(code = tmp_freq$value,bracket = dhhgage_brackets[as.character(tmp_freq$value)],n = tmp_freq$n,pct = tmp_freq$pct,stringsAsFactors =FALSE )} else { t_dhhgage_freq <-data.frame(code =character(0), bracket =character(0),n =integer(0), pct =numeric(0),stringsAsFactors =FALSE)}# Children in household by age band. Despite the "count" naming inherited from# the PUMF documentation, DHHGLE5 / DHHG611 / DHHGL12 are BINARY 0/1 presence# flags (0 = none, 1 = one or more). Treated as ordered factors here.make_count_freq <-function(ds, var) {if (!var %in%names(ds)) return(NULL) vals <-sort(unique(na.omit(ds[[var]]))) f <-factor(ds[[var]], levels = vals)summarize_discrete(data.frame(x = f), "x")}t_children_le5 <-make_count_freq(ds0, "dhhgle5")t_children_6_11 <-make_count_freq(ds0, "dhhg611")t_children_l12 <-make_count_freq(ds0, "dhhgl12")# student_status: suppressed in PUMF; create all-NA stub for QMD guardif ("student_status"%in%names(ds0)) { t_student_status <-summarize_discrete(ds0, "student_status")} else { t_student_status <-data.frame(value =character(0), n =integer(0), pct =numeric(0),stringsAsFactors =FALSE)attr(t_student_status, "n_miss") <-nrow(ds0)attr(t_student_status, "n_valid") <- 0L}
home_ownership — Dwelling owned by a member of the household
Home ownership
N
% (of valid)
Owner
50101
78.7
Renter
13576
21.3
Note
home_ownership derives from DHH_OWN, which is present in both cycles. “Renter” means “not owned by a member of the household” and therefore also covers band housing and rent-free arrangements; it is not a tenure-type breakdown. Not-stated responses are SPSS system-missing in 2010-2011 but explicit codes 7/8/9 in 2013-2014; both are mapped to NA by the Ellis recode.
All-NA variable.student_status is all-missing. sdcdgstud is suppressed in the CCHS PUMF; requires RDC access.
dhhgage — Raw PUMF age group code
Code
Age bracket
N
% (of valid)
2
15–17 yrs
2349
3.7
3
18–19 yrs
2236
3.5
4
20–24 yrs
5077
8.0
5
25–29 yrs
5886
9.2
6
30–34 yrs
5556
8.7
7
35–39 yrs
6348
9.9
8
40–44 yrs
6290
9.9
9
45–49 yrs
5562
8.7
10
50–54 yrs
7459
11.7
11
55–59 yrs
7760
12.2
12
60–64 yrs
5543
8.7
13
65–69 yrs
2626
4.1
14
70–74 yrs
1048
1.6
15
75–79 yrs
103
0.2
dhhgle5 — Any child aged ≤ 5 in household (0 = none, 1 = one or more)
Presence (0/1)
N
% (of valid)
0
55089
86.3
1
8754
13.7
dhhg611 — Any child aged 6–11 in household (0 = none, 1 = one or more)
Presence (0/1)
N
% (of valid)
0
54678
85.6
1
9165
14.4
dhhgl12 — Any child aged under 12 in household (0 = none, 1 = one or more)
Presence (0/1)
N
% (of valid)
0
49264
77.2
1
14579
22.8
Note on the three child-presence flags:dhhgle5, dhhg611, and dhhgl12 are binary 0/1 presence indicators (0 = no such child in the household, 1 = one or more), not counts of children. All three are fully populated (0 missing across 63,843 rows).
Note on dhhgl12 redundancy:dhhgl12 denotes a child under 12 and is a deterministic function of the other two flags — dhhgl12 == (dhhgle5 | dhhg611) holds in all 63,843 rows, with zero discordant cases. Its marginal (22.8% positive) is therefore fully determined by the two component marginals (13.7% and 14.4%) and their overlap (3,340 households with both). Read it as a summary of the two, never as a third independent household characteristic.
Note on missing household variables:dhhdfc12p (children ≥ 12 yrs) has no PUMF equivalent and is a different construct from dhhgl12. See Variable Inclusion §4.
4. Facilitating Variables
Facilitating variables describe health-system access, health behaviours, and labour-market context. All 12 facilitating variables are populated in the current pipeline output. See Variable Inclusion §5 for traceability.
work_stress — Ordered: Not at all → Extremely stressful (GEN_09)
Work stress level
N
% (of valid)
Not at all stressful
6407
10.1
Not very stressful
12854
20.2
A bit stressful
27206
42.8
Quite a bit stressful
14419
22.7
Extremely stressful
2697
4.2
province — 13-level factor (includes Nunavut and NWT combined)
Province / territory
N
% (of valid)
NL
1798
2.8
PEI
991
1.6
NS
2324
3.6
NB
2252
3.5
QC
11243
17.6
ON
20518
32.1
MB
3838
6.0
SK
4032
6.3
AB
7078
11.1
BC
7714
12.1
YK
2055
3.2
NT
0
0.0
NU
0
0.0
5. Needs Variables
Needs variables capture perceived health status and functional limitations. ADL items use semantic names after Ellis renaming (adl_01 → adl_meals, etc.). All ADL items are binary Yes/No factors.
wts_m is the per-cycle survey weight; wts_m_pooled is the pooled weight adjusted for two-cycle pooling (divide by 2 per Statistics Canada guidelines).
Survey sampling weights: wts_m (per-cycle) and wts_m_pooled (pooled across cycles)
Weight variable
N valid
N missing
Mean
SD
Min
P25
Median
P75
Max
wts_m
63843
0
559.02
900.55
6.04
142.30
287.84
610.82
26332.62
wts_m_pooled
63843
0
279.51
450.28
3.02
71.15
143.92
305.41
13166.31
6.2 Survey Cycle
cchs_cycle_f — CCHS 2010 and 2014 pooled sample
CCHS cycle
N
% (of valid)
2010-2011
32621
51.1
2013-2014
31222
48.9
6.3 Completeness Flags
Three logical flags indicate whether a respondent has complete data for each analytical dimension. Use flag_analytic_complete to subset to the analytic sample.
Analytic completeness flags (TRUE = complete for that dimension)
Completeness flag
N TRUE
N FALSE
N missing
flag_complete_ccc
flag_complete_ccc
42064
21779
0
flag_complete_predictors
flag_complete_predictors
59309
4534
0
flag_analytic_complete
flag_analytic_complete
39702
24141
0
flag_complete_ccc — All 17 chronic condition indicators (cc_*) are non-NA. cc_copd was administered to a sub-sample only (~66% coverage), so this flag is TRUE for 42,064 of the 63,843 analytic rows. Use this flag when running models that include any cc_* predictor.
flag_complete_predictors — All key predictor variables (age, sex, education, income, immigration status, province, employment, smoking, BMI, physical activity, perceived health, etc.) are non-NA. Rows with missing values on any single predictor will have this flag set to FALSE. Covers 59,309 rows.
flag_analytic_complete — Both flag_complete_ccc AND flag_complete_predictors are TRUE. This is the recommended subsetting criterion for fully complete-case analyses. Covers 39,702 rows (~62% of the analytic sample).
All three flags are pre-computed in the Ellis script. No need to re-derive exclusion logic in downstream analyses — simply filter on the relevant flag.
7. Clustered Missingness Audit
Context (Marc-André, 2026-05-15): Several variables share a similar level of missingness (~30%). This section audits whether these form a coherent cluster and documents the mechanism for each — primarily age-gated questions that were only administered to respondents above a certain age threshold.
7.1 Age-Gated Variables
The following variables were administered conditionally based on respondent age:
Variable
Threshold
Mechanism
Coverage
cc_copd (CCC_091)
35+ years (DHHGAGE ≥ 8)
COPD question not asked to younger respondents
~66%
bmi_category (HWTGISW)
18+ years (DHHGAGE ≥ 3)
BMI derived only for adults 18+
~95%
7.2 Other Missingness Mechanisms
Variable
Mechanism
Notes
income_hh (INCGHH)
Non-response / refusal
Income is sensitive; ~5% refuse
immigration_status
NOT STATED in source
~3% codes 9/99 → NA
occupation_category (LBSGSOC)
Not applicable for some employment types
Self-employed with no SOC code
fruit_veg_daily (FVCGTOT)
Partial module administration
~10% missing across cycles
smoking_status (SMKDSTY)
Complex derived variable
Requires valid responses to multiple source items
7.3 Interpretation
The ~30% missingness cluster is dominated by cc_copd (age-gated, 34% missing). When this condition is excluded from the complete-case flag, flag_complete_ccc would rise from 66% to approximately 95%. Analysts working exclusively with conditions other than COPD should consider subsetting on the 16 remaining conditions rather than using flag_complete_ccc which penalizes younger respondents.
For COPD-inclusive models, restrict to respondents aged 35+ (DHHGAGE ≥ 8) and impute cc_copd = FALSE for the younger subsample, following the recommendation from the 2026-05-15 review session.