Analytics for the T2DM sample
The analytics every type 2 diabetes dataset comes with, run on the free natural-mix sample: integrity checks, a profile of every field, correlation matrices, stage mix and complication rates.
1000 rows · 77 fields · seed 20260611 · engine v1.3.22 · schema analytics-2.0 · fingerprint fnv1a64:a4762d883416298c
§ 01Load the data
Column types inferred from this dataset. The CSV header is the sorted union of all records' fields; empty cells are missing values.
pandas
import pandas as pd
dtypes = {
"id": "string",
"given_name": "category",
"family_name": "category",
"full_name": "string",
"email": "string",
"phone": "string",
"ssn_last_four": "string",
"employer_ein": "string",
"age": "Int64",
"sex_at_birth": "category",
"gender_identity": "category",
"pronouns": "category",
"race": "category",
"ethnicity": "category",
"locale": "category",
"preferred_language": "category",
"country": "category",
"state": "category",
"city": "string",
"zip_code": "string",
"street_address": "string",
"urbanicity": "category",
"marital_status": "category",
"household_size": "Int64",
"education": "category",
"employment_status": "category",
"occupation_label": "category",
"industry": "category",
"household_income_bracket": "category",
"insurance_type": "category",
"homeowner_status": "category",
"smoking_status": "category",
"alcohol_use": "category",
"exercise_frequency": "category",
"sleep_hours_avg": "float64",
"height_cm": "float64",
"weight_kg": "float64",
"bmi": "float64",
"waist_circumference_cm": "float64",
"a1c_value": "float64",
"systolic_bp_avg": "float64",
"diastolic_bp_avg": "float64",
"egfr_value": "float64",
"diabetes_status": "category",
"diabetes_duration_years": "float64",
"hypertension_status": "category",
"hyperlipidemia_status": "category",
"ckd_status": "category",
"family_history_diabetes": "boolean",
"gestational_diabetes_history": "boolean",
"cardiovascular_disease_history": "boolean",
"cancer_history": "boolean",
"depression_anxiety_history": "boolean",
"pregnancy_status": "category",
"has_primary_care_provider": "boolean",
"visits_past_year": "Int64",
"er_visits_past_year": "Int64",
"hospitalizations_past_year": "Int64",
"has_specialty_care": "boolean",
"food_insecurity": "category",
"number_of_prescriptions": "Int64",
"on_insulin": "boolean",
"on_chronic_medications": "boolean",
"on_statin": "boolean",
"on_antihypertensive": "boolean",
"t2dm_progression_propensity": "float64",
"t2dm_biological_stage": "Int64",
"t2dm_clinical_stage": "Int64",
"t2dm_detection_lag_years": "float64",
"t2dm_neuropathy": "boolean",
"t2dm_retinopathy": "boolean",
"t2dm_nephropathy": "boolean",
"preferred_name": "category",
"death_cause": "category",
"address_line_2": "string",
}
df = pd.read_csv("persons.csv", dtype=dtypes, parse_dates=["date_of_birth", "death_date"])
# or the JSON Lines file:
# df = pd.read_json("persons.jsonl", lines=True).astype(dtypes)
polars
import polars as pl
schema = {
"id": pl.Utf8,
"given_name": pl.Categorical,
"family_name": pl.Categorical,
"full_name": pl.Utf8,
"email": pl.Utf8,
"phone": pl.Utf8,
"ssn_last_four": pl.Utf8,
"employer_ein": pl.Utf8,
"date_of_birth": pl.Date,
"age": pl.Int64,
"sex_at_birth": pl.Categorical,
"gender_identity": pl.Categorical,
"pronouns": pl.Categorical,
"race": pl.Categorical,
"ethnicity": pl.Categorical,
"locale": pl.Categorical,
"preferred_language": pl.Categorical,
"country": pl.Categorical,
"state": pl.Categorical,
"city": pl.Utf8,
"zip_code": pl.Utf8,
"street_address": pl.Utf8,
"urbanicity": pl.Categorical,
"marital_status": pl.Categorical,
"household_size": pl.Int64,
"education": pl.Categorical,
"employment_status": pl.Categorical,
"occupation_label": pl.Categorical,
"industry": pl.Categorical,
"household_income_bracket": pl.Categorical,
"insurance_type": pl.Categorical,
"homeowner_status": pl.Categorical,
"smoking_status": pl.Categorical,
"alcohol_use": pl.Categorical,
"exercise_frequency": pl.Categorical,
"sleep_hours_avg": pl.Float64,
"height_cm": pl.Float64,
"weight_kg": pl.Float64,
"bmi": pl.Float64,
"waist_circumference_cm": pl.Float64,
"a1c_value": pl.Float64,
"systolic_bp_avg": pl.Float64,
"diastolic_bp_avg": pl.Float64,
"egfr_value": pl.Float64,
"diabetes_status": pl.Categorical,
"diabetes_duration_years": pl.Float64,
"hypertension_status": pl.Categorical,
"hyperlipidemia_status": pl.Categorical,
"ckd_status": pl.Categorical,
"family_history_diabetes": pl.Boolean,
"gestational_diabetes_history": pl.Boolean,
"cardiovascular_disease_history": pl.Boolean,
"cancer_history": pl.Boolean,
"depression_anxiety_history": pl.Boolean,
"pregnancy_status": pl.Categorical,
"has_primary_care_provider": pl.Boolean,
"visits_past_year": pl.Int64,
"er_visits_past_year": pl.Int64,
"hospitalizations_past_year": pl.Int64,
"has_specialty_care": pl.Boolean,
"food_insecurity": pl.Categorical,
"number_of_prescriptions": pl.Int64,
"on_insulin": pl.Boolean,
"on_chronic_medications": pl.Boolean,
"on_statin": pl.Boolean,
"on_antihypertensive": pl.Boolean,
"t2dm_progression_propensity": pl.Float64,
"t2dm_biological_stage": pl.Int64,
"t2dm_clinical_stage": pl.Int64,
"t2dm_detection_lag_years": pl.Float64,
"t2dm_neuropathy": pl.Boolean,
"t2dm_retinopathy": pl.Boolean,
"t2dm_nephropathy": pl.Boolean,
"preferred_name": pl.Categorical,
"death_date": pl.Date,
"death_cause": pl.Categorical,
"address_line_2": pl.Utf8,
}
df = pl.read_csv("persons.csv", schema_overrides=schema)
R (readr)
library(readr)
df <- read_csv("persons.csv", col_types = cols(
id = col_character(),
given_name = col_factor(),
family_name = col_factor(),
full_name = col_character(),
email = col_character(),
phone = col_character(),
ssn_last_four = col_character(),
employer_ein = col_character(),
date_of_birth = col_date(),
age = col_integer(),
sex_at_birth = col_factor(),
gender_identity = col_factor(),
pronouns = col_factor(),
race = col_factor(),
ethnicity = col_factor(),
locale = col_factor(),
preferred_language = col_factor(),
country = col_factor(),
state = col_factor(),
city = col_character(),
zip_code = col_character(),
street_address = col_character(),
urbanicity = col_factor(),
marital_status = col_factor(),
household_size = col_integer(),
education = col_factor(),
employment_status = col_factor(),
occupation_label = col_factor(),
industry = col_factor(),
household_income_bracket = col_factor(),
insurance_type = col_factor(),
homeowner_status = col_factor(),
smoking_status = col_factor(),
alcohol_use = col_factor(),
exercise_frequency = col_factor(),
sleep_hours_avg = col_double(),
height_cm = col_double(),
weight_kg = col_double(),
bmi = col_double(),
waist_circumference_cm = col_double(),
a1c_value = col_double(),
systolic_bp_avg = col_double(),
diastolic_bp_avg = col_double(),
egfr_value = col_double(),
diabetes_status = col_factor(),
diabetes_duration_years = col_double(),
hypertension_status = col_factor(),
hyperlipidemia_status = col_factor(),
ckd_status = col_factor(),
family_history_diabetes = col_logical(),
gestational_diabetes_history = col_logical(),
cardiovascular_disease_history = col_logical(),
cancer_history = col_logical(),
depression_anxiety_history = col_logical(),
pregnancy_status = col_factor(),
has_primary_care_provider = col_logical(),
visits_past_year = col_integer(),
er_visits_past_year = col_integer(),
hospitalizations_past_year = col_integer(),
has_specialty_care = col_logical(),
food_insecurity = col_factor(),
number_of_prescriptions = col_integer(),
on_insulin = col_logical(),
on_chronic_medications = col_logical(),
on_statin = col_logical(),
on_antihypertensive = col_logical(),
t2dm_progression_propensity = col_double(),
t2dm_biological_stage = col_integer(),
t2dm_clinical_stage = col_integer(),
t2dm_detection_lag_years = col_double(),
t2dm_neuropathy = col_logical(),
t2dm_retinopathy = col_logical(),
t2dm_nephropathy = col_logical(),
preferred_name = col_factor(),
death_date = col_date(),
death_cause = col_factor(),
address_line_2 = col_character()
))
§ 02Integrity checks
| Check | Applies to | Passed | |
|---|---|---|---|
| Every record has a distinct id | 1000 rows | 100.00% | pass |
| Email has one @ and a dotted domain | 1000 rows | 100.00% | pass |
| Phone has at least 10 digits | 1000 rows | 100.00% | pass |
| ZIP code's first 3 digits belong to the record's state (US records) | 1000 rows | 100.00% | pass |
| BMI equals weight / height² (within 0.2 kg/m²) | 1000 rows | 100.00% | pass |
| Insulin users have diagnosed type 2 or type 1 diabetes | 232 rows | 100.00% | pass |
| Pregnant / postpartum records are female and aged 15–49 | 15 rows | 100.00% | pass |
| On chronic medication exactly when prescriptions > 0 | 1000 rows | 100.00% | pass |
| Age is 18–100 years | 1000 rows | 100.00% | pass |
| Death date is after date of birth | 86 rows | 100.00% | pass |
1000 distinct name + date-of-birth pairs in 1000 rows. Names come from finite lists, so a few chance repeats are expected, as in a real population.
§ 03Variable profiles
Every field in the dataset. Open a row for quantiles, shape, outliers and the full distribution.
ididentifierstring0.0%1000e.g. 53V538R0W7ZJBAVAHSN26KCF4H
Examples: 53V538R0W7ZJBAVAHSN26KCF4H 5PMYZKFVNAZNJC967K13Y4KQTP 3D0P0FRFTEZZEZTQQAVW4T02GG
given_namecategoricalcategory0.0%60mode Christopher (2.9%)
Normalized entropy 0.990 (1 = perfectly balanced) · imbalance ratio 4.1× (most ÷ least frequent) · 752 rows in other categories
Examples: Margaret Luis Kimberly
family_namecategoricalcategory0.0%30mode Sanchez (4.2%)
Normalized entropy 0.998 (1 = perfectly balanced) · imbalance ratio 1.8× (most ÷ least frequent) · 616 rows in other categories
Examples: White Perez Clark
full_namefree textstring0.0%761e.g. Margaret White
Examples: Margaret White Luis Perez Kimberly Clark
emailidentifierstring0.0%1000e.g. 30c719fb-3b2e-4250-a8fe-af7b895dd5a8@example.org
Examples: 30c719fb-3b2e-4250-a8fe-af7b895dd5a8@example.org a5d31df6-b831-4a55-99af-66a3010750bf@example.org e39ed464-1571-44dc-bf5b-f8f07ed5d22e@example.com
phoneidentifierstring0.0%1000e.g. +1-248-114-9732
Examples: +1-248-114-9732 +1-861-094-8889 +1-825-651-5097
ssn_last_fouridentifierstring0.0%954e.g. 4912
Examples: 4912 3136 1768
employer_einidentifierstring39.9%601e.g. 00-1743984
Missing by design: Only for employed people.
Examples: 00-1743984 00-1402658 00-0746036
date_of_birthdatedatetime64[ns]0.0%9681930-07-26 to 1988-05-31
Range: 1930-07-26 to 1988-05-31
Examples: 1954-07-14 1958-01-16 1986-09-16
age yearsnumericInt640.0%56mean 58.10 · median 57 · SD 12.95
| Mean | 58.10 years |
|---|---|
| SD | 12.95 years |
| Min | 38 years |
| p1 | 38 years |
| p5 | 40 years |
| p25 | 48 years |
| Median | 57 years |
| p75 | 68 years |
| p95 | 82 years |
| p99 | 89.02 years |
| Max | 95 years |
| IQR | 20 years |
| Skewness | 0.42 |
| Excess kurtosis | -0.53 |
| CV | 0.22 |
| Zeros | 0 rows |
| IQR outliers | 0 rows |
Examples: 71 68 39
sex_at_birthcategoricalcategory0.0%2mode male (55.2%)
Normalized entropy 0.992 (1 = perfectly balanced) · imbalance ratio 1.2× (most ÷ least frequent)
Examples: female male
gender_identitycategoricalcategory0.0%5mode man (52.4%)
Normalized entropy 0.537 (1 = perfectly balanced) · imbalance ratio 58.2× (most ÷ least frequent)
Examples: woman man other
pronounscategoricalcategory0.0%4mode he/him (52.4%)
Normalized entropy 0.614 (1 = perfectly balanced) · imbalance ratio 27.6× (most ÷ least frequent)
Examples: she/her he/him other
racecategoricalcategory0.0%7mode white (60.1%)
Normalized entropy 0.640 (1 = perfectly balanced) · imbalance ratio 300.5× (most ÷ least frequent)
Examples: white black multi_racial
ethnicitycategoricalcategory0.0%2mode non hispanic (78.8%)
Normalized entropy 0.745 (1 = perfectly balanced) · imbalance ratio 3.7× (most ÷ least frequent)
Examples: non_hispanic hispanic
localecategoricalcategory0.0%1mode en-US (100.0%)
Normalized entropy 0.000 (1 = perfectly balanced) · imbalance ratio 1.0× (most ÷ least frequent)
Examples: en-US
preferred_languagecategoricalcategory0.0%1mode en (100.0%)
Normalized entropy 0.000 (1 = perfectly balanced) · imbalance ratio 1.0× (most ÷ least frequent)
Examples: en
countrycategoricalcategory0.0%1mode US (100.0%)
Normalized entropy 0.000 (1 = perfectly balanced) · imbalance ratio 1.0× (most ÷ least frequent)
Examples: US
statecategoricalcategory0.0%50mode CA (14.4%)
Normalized entropy 0.858 (1 = perfectly balanced) · imbalance ratio 144.0× (most ÷ least frequent) · 408 rows in other categories
Examples: TX VA NJ
cityfree textstring0.0%201e.g. Houston
Examples: Houston Richmond Newark
zip_codeidentifierstring0.0%995e.g. 76522
Examples: 76522 24353 07605
street_addressidentifierstring0.0%1000e.g. 7756 White Blvd
Examples: 7756 White Blvd 9731 Perez Way 894 Clark St
urbanicitycategoricalcategory0.0%3mode urban (48.2%)
Normalized entropy 0.907 (1 = perfectly balanced) · imbalance ratio 3.4× (most ÷ least frequent)
Examples: suburban urban rural
marital_statuscategoricalcategory0.0%6mode married (54.5%)
Normalized entropy 0.738 (1 = perfectly balanced) · imbalance ratio 49.5× (most ÷ least frequent)
Examples: widowed married single
household_size peoplenumericInt640.0%5mean 2.68 · median 2 · SD 1.32
| Mean | 2.68 people |
|---|---|
| SD | 1.32 people |
| Min | 1 people |
| p1 | 1 people |
| p5 | 1 people |
| p25 | 2 people |
| Median | 2 people |
| p75 | 4 people |
| p95 | 5 people |
| p99 | 5 people |
| Max | 5 people |
| IQR | 2 people |
| Skewness | 0.34 |
| Excess kurtosis | -1.02 |
| CV | 0.49 |
| Zeros | 0 rows |
| IQR outliers | 0 rows |
Examples: 1 4 2
educationcategoricalcategory0.0%6mode high school (30.8%)
Normalized entropy 0.951 (1 = perfectly balanced) · imbalance ratio 3.4× (most ÷ least frequent)
Examples: bachelor some_college high_school
employment_statuscategoricalcategory0.0%7mode employed full time (50.0%)
Normalized entropy 0.680 (1 = perfectly balanced) · imbalance ratio 55.6× (most ÷ least frequent)
Examples: employed_part_time retired employed_full_time
occupation_labelcategoricalcategory39.9%9mode Management, Business & Financial (19.3%)
Missing by design: Only for employed people.
Normalized entropy 0.981 (1 = perfectly balanced) · imbalance ratio 2.7× (most ÷ least frequent)
Examples: Management, Business & Financial Sales & Related Computer, Engineering & Science
industrycategoricalcategory39.9%9mode Education & Health Services (24.8%)
Missing by design: Only for employed people.
Normalized entropy 0.941 (1 = perfectly balanced) · imbalance ratio 5.5× (most ÷ least frequent)
Examples: Trade & Retail Manufacturing Financial Activities
household_income_bracketcategoricalcategory0.0%5mode r50to100k (29.8%)
Normalized entropy 0.978 (1 = perfectly balanced) · imbalance ratio 2.1× (most ÷ least frequent)
Examples: over150k under25k r25to50k
insurance_typecategoricalcategory0.0%7mode employer (47.1%)
Normalized entropy 0.714 (1 = perfectly balanced) · imbalance ratio 52.3× (most ÷ least frequent)
Examples: medicare employer marketplace
homeowner_statuscategoricalcategory0.0%3mode owner (69.3%)
Normalized entropy 0.695 (1 = perfectly balanced) · imbalance ratio 12.2× (most ÷ least frequent)
Examples: owner renter other
smoking_statuscategoricalcategory0.0%3mode never (64.5%)
Normalized entropy 0.785 (1 = perfectly balanced) · imbalance ratio 6.4× (most ÷ least frequent)
Examples: never former current
alcohol_usecategoricalcategory0.0%4mode none (40.2%)
Normalized entropy 0.853 (1 = perfectly balanced) · imbalance ratio 5.5× (most ÷ least frequent)
Examples: none light moderate
exercise_frequencycategoricalcategory0.0%4mode none (34.1%)
Normalized entropy 0.947 (1 = perfectly balanced) · imbalance ratio 3.3× (most ÷ least frequent)
Examples: none regular occasional
sleep_hours_avg hours/nightnumericfloat640.0%68mean 6.99 · median 7 · SD 1.19
| Mean | 6.99 hours/night |
|---|---|
| SD | 1.19 hours/night |
| Min | 3 hours/night |
| p1 | 4.40 hours/night |
| p5 | 5.09 hours/night |
| p25 | 6.20 hours/night |
| Median | 7 hours/night |
| p75 | 7.80 hours/night |
| p95 | 9 hours/night |
| p99 | 9.80 hours/night |
| Max | 10.60 hours/night |
| IQR | 1.60 hours/night |
| Skewness | 0.02 |
| Excess kurtosis | -0.07 |
| CV | 0.17 |
| Zeros | 0 rows |
| IQR outliers | 6 rows |
Examples: 6.1 7.2 7.5
height_cm cmnumericfloat640.0%375mean 169.24 · median 169.30 · SD 9.98
| Mean | 169.24 cm |
|---|---|
| SD | 9.98 cm |
| Min | 141.20 cm |
| p1 | 147.50 cm |
| p5 | 152.89 cm |
| p25 | 162 cm |
| Median | 169.30 cm |
| p75 | 176.82 cm |
| p95 | 185.20 cm |
| p99 | 191.40 cm |
| Max | 195.20 cm |
| IQR | 14.82 cm |
| Skewness | -0.01 |
| Excess kurtosis | -0.50 |
| CV | 0.06 |
| Zeros | 0 rows |
| IQR outliers | 0 rows |
Examples: 166.2 177 166.5
weight_kg kgnumericfloat640.0%552mean 92.88 · median 91.60 · SD 21.55
| Mean | 92.88 kg |
|---|---|
| SD | 21.55 kg |
| Min | 34.90 kg |
| p1 | 46.70 kg |
| p5 | 59.59 kg |
| p25 | 78.58 kg |
| Median | 91.60 kg |
| p75 | 106.90 kg |
| p95 | 129.51 kg |
| p99 | 145.80 kg |
| Max | 179.80 kg |
| IQR | 28.32 kg |
| Skewness | 0.32 |
| Excess kurtosis | 0.35 |
| CV | 0.23 |
| Zeros | 0 rows |
| IQR outliers | 10 rows |
Examples: 94.7 179.8 72.9
bmi kg/m²numericfloat640.0%269mean 32.27 · median 32 · SD 6.37
| Mean | 32.27 kg/m² |
|---|---|
| SD | 6.37 kg/m² |
| Min | 15.70 kg/m² |
| p1 | 18.50 kg/m² |
| p5 | 22.89 kg/m² |
| p25 | 27.90 kg/m² |
| Median | 32 kg/m² |
| p75 | 36 kg/m² |
| p95 | 43.31 kg/m² |
| p99 | 49.20 kg/m² |
| Max | 60.30 kg/m² |
| IQR | 8.10 kg/m² |
| Skewness | 0.50 |
| Excess kurtosis | 0.82 |
| CV | 0.20 |
| Zeros | 0 rows |
| IQR outliers | 16 rows |
Examples: 34.3 57.4 26.3
waist_circumference_cm cmnumericfloat640.0%511mean 107.02 · median 106.60 · SD 16.75
| Mean | 107.02 cm |
|---|---|
| SD | 16.75 cm |
| Min | 61 cm |
| p1 | 71.00 cm |
| p5 | 79.98 cm |
| p25 | 95.70 cm |
| Median | 106.60 cm |
| p75 | 117.83 cm |
| p95 | 134.90 cm |
| p99 | 146.40 cm |
| Max | 172.80 cm |
| IQR | 22.12 cm |
| Skewness | 0.24 |
| Excess kurtosis | 0.32 |
| CV | 0.16 |
| Zeros | 0 rows |
| IQR outliers | 7 rows |
Examples: 110.9 172.8 87.5
a1c_value %numericfloat640.0%72mean 7.32 · median 6.80 · SD 1.48
| Mean | 7.32% |
|---|---|
| SD | 1.48% |
| Min | 5.50% |
| p1 | 5.60% |
| p5 | 5.80% |
| p25 | 6.20% |
| Median | 6.80% |
| p75 | 7.90% |
| p95 | 10.60% |
| p99 | 12% |
| Max | 14.20% |
| IQR | 1.70% |
| Skewness | 1.35 |
| Excess kurtosis | 1.46 |
| CV | 0.20 |
| Zeros | 0 rows |
| IQR outliers | 57 rows |
Examples: 6.1 7.2 6
systolic_bp_avg mmHgnumericfloat640.0%200mean 130.38 · median 131.33 · SD 14.83
| Mean | 130.38 mmHg |
|---|---|
| SD | 14.83 mmHg |
| Min | 80.67 mmHg |
| p1 | 97.99 mmHg |
| p5 | 105.63 mmHg |
| p25 | 120.33 mmHg |
| Median | 131.33 mmHg |
| p75 | 141.08 mmHg |
| p95 | 153.67 mmHg |
| p99 | 163.00 mmHg |
| Max | 176.33 mmHg |
| IQR | 20.75 mmHg |
| Skewness | -0.11 |
| Excess kurtosis | -0.23 |
| CV | 0.11 |
| Zeros | 0 rows |
| IQR outliers | 4 rows |
Examples: 126 150.333 112.667
diastolic_bp_avg mmHgnumericfloat640.0%139mean 76.43 · median 76 · SD 9.35
| Mean | 76.43 mmHg |
|---|---|
| SD | 9.35 mmHg |
| Min | 50 mmHg |
| p1 | 54.66 mmHg |
| p5 | 61.67 mmHg |
| p25 | 70 mmHg |
| Median | 76 mmHg |
| p75 | 82.42 mmHg |
| p95 | 91.67 mmHg |
| p99 | 99.34 mmHg |
| Max | 108 mmHg |
| IQR | 12.42 mmHg |
| Skewness | 0.14 |
| Excess kurtosis | -0.01 |
| CV | 0.12 |
| Zeros | 0 rows |
| IQR outliers | 10 rows |
Examples: 67.667 81 52
egfr_value mL/min/1.73m²numericfloat640.0%550mean 82.05 · median 87.50 · SD 25.36
| Mean | 82.05 mL/min/1.73m² |
|---|---|
| SD | 25.36 mL/min/1.73m² |
| Min | 5.10 mL/min/1.73m² |
| p1 | 8.80 mL/min/1.73m² |
| p5 | 26.19 mL/min/1.73m² |
| p25 | 75 mL/min/1.73m² |
| Median | 87.50 mL/min/1.73m² |
| p75 | 99.30 mL/min/1.73m² |
| p95 | 112.61 mL/min/1.73m² |
| p99 | 118.80 mL/min/1.73m² |
| Max | 124.30 mL/min/1.73m² |
| IQR | 24.30 mL/min/1.73m² |
| Skewness | -1.21 |
| Excess kurtosis | 1.02 |
| CV | 0.31 |
| Zeros | 0 rows |
| IQR outliers | 98 rows |
Examples: 80 70.3 90.6
diabetes_statuscategoricalcategory0.0%2mode diagnosed t2dm (85.7%)
Normalized entropy 0.592 (1 = perfectly balanced) · imbalance ratio 6.0× (most ÷ least frequent)
Examples: diagnosed_t2dm undiagnosed_t2dm
diabetes_duration_years yearsnumericfloat640.0%184mean 6.62 · median 5.20 · SD 4.80
| Mean | 6.62 years |
|---|---|
| SD | 4.80 years |
| Min | 1.10 years |
| p1 | 1.50 years |
| p5 | 2.10 years |
| p25 | 3.50 years |
| Median | 5.20 years |
| p75 | 8 years |
| p95 | 16.41 years |
| p99 | 24.00 years |
| Max | 46.10 years |
| IQR | 4.50 years |
| Skewness | 2.39 |
| Excess kurtosis | 9.30 |
| CV | 0.72 |
| Zeros | 0 rows |
| IQR outliers | 68 rows |
Examples: 4.8 6.6 4.1
hypertension_statuscategoricalcategory0.0%3mode diagnosed (71.0%)
Normalized entropy 0.718 (1 = perfectly balanced) · imbalance ratio 7.1× (most ÷ least frequent)
Examples: none diagnosed undiagnosed
hyperlipidemia_statuscategoricalcategory0.0%3mode diagnosed (59.1%)
Normalized entropy 0.872 (1 = perfectly balanced) · imbalance ratio 3.2× (most ÷ least frequent)
Examples: undiagnosed diagnosed none
ckd_statuscategoricalcategory0.0%4mode none (56.1%)
Normalized entropy 0.759 (1 = perfectly balanced) · imbalance ratio 17.0× (most ÷ least frequent)
Examples: none stage1_to2 stage5
family_history_diabetesbooleanboolean0.0%2mode false (71.1%)
Normalized entropy 0.867 (1 = perfectly balanced) · imbalance ratio 2.5× (most ÷ least frequent)
Examples: false true
gestational_diabetes_historybooleanboolean55.2%2mode false (94.6%)
Missing by design: Only for women (18+).
Normalized entropy 0.301 (1 = perfectly balanced) · imbalance ratio 17.7× (most ÷ least frequent)
Examples: false true
cardiovascular_disease_historybooleanboolean0.0%2mode false (75.8%)
Normalized entropy 0.798 (1 = perfectly balanced) · imbalance ratio 3.1× (most ÷ least frequent)
Examples: false true
cancer_historybooleanboolean0.0%2mode false (90.2%)
Normalized entropy 0.463 (1 = perfectly balanced) · imbalance ratio 9.2× (most ÷ least frequent)
Examples: false true
depression_anxiety_historybooleanboolean0.0%2mode false (83.2%)
Normalized entropy 0.653 (1 = perfectly balanced) · imbalance ratio 5.0× (most ÷ least frequent)
Examples: false true
pregnancy_statuscategoricalcategory0.0%4mode not applicable (87.0%)
Normalized entropy 0.320 (1 = perfectly balanced) · imbalance ratio 124.3× (most ÷ least frequent)
Examples: not_applicable not_pregnant pregnant
has_primary_care_providerbooleanboolean0.0%2mode true (88.8%)
Normalized entropy 0.506 (1 = perfectly balanced) · imbalance ratio 7.9× (most ÷ least frequent)
Examples: true false
visits_past_year visits/yearnumericInt640.0%15mean 5.08 · median 5 · SD 2.51
| Mean | 5.08 visits/year |
|---|---|
| SD | 2.51 visits/year |
| Min | 0 visits/year |
| p1 | 0.99 visits/year |
| p5 | 1 visits/year |
| p25 | 3 visits/year |
| Median | 5 visits/year |
| p75 | 7 visits/year |
| p95 | 10 visits/year |
| p99 | 12 visits/year |
| Max | 15 visits/year |
| IQR | 4 visits/year |
| Skewness | 0.53 |
| Excess kurtosis | 0.19 |
| CV | 0.49 |
| Zeros | 10 rows |
| IQR outliers | 1 rows |
Examples: 2 7 6
er_visits_past_year visits/yearnumericInt640.0%5mean 0.69 · median 0 · SD 0.81
| Mean | 0.69 visits/year |
|---|---|
| SD | 0.81 visits/year |
| Min | 0 visits/year |
| p1 | 0 visits/year |
| p5 | 0 visits/year |
| p25 | 0 visits/year |
| Median | 0 visits/year |
| p75 | 1 visits/year |
| p95 | 2 visits/year |
| p99 | 3 visits/year |
| Max | 4 visits/year |
| IQR | 1 visits/year |
| Skewness | 1.02 |
| Excess kurtosis | 0.48 |
| CV | 1.18 |
| Zeros | 503 rows |
| IQR outliers | 29 rows |
Examples: 0 2 3
hospitalizations_past_year visits/yearnumericInt640.0%4mean 0.24 · median 0 · SD 0.50
| Mean | 0.24 visits/year |
|---|---|
| SD | 0.50 visits/year |
| Min | 0 visits/year |
| p1 | 0 visits/year |
| p5 | 0 visits/year |
| p25 | 0 visits/year |
| Median | 0 visits/year |
| p75 | 0 visits/year |
| p95 | 1 visits/year |
| p99 | 2 visits/year |
| Max | 3 visits/year |
| IQR | 0 visits/year |
| Skewness | 2.12 |
| Excess kurtosis | 4.50 |
| CV | 2.08 |
| Zeros | 789 rows |
| IQR outliers | 211 rows |
Examples: 0 1 2
has_specialty_carebooleanboolean0.0%2mode true (74.3%)
Normalized entropy 0.822 (1 = perfectly balanced) · imbalance ratio 2.9× (most ÷ least frequent)
Examples: true false
food_insecuritycategoricalcategory0.0%4mode secure (85.4%)
Normalized entropy 0.406 (1 = perfectly balanced) · imbalance ratio 40.7× (most ÷ least frequent)
Examples: secure marginal low
number_of_prescriptions prescriptionsnumericInt640.0%20mean 6.52 · median 7 · SD 4.55
| Mean | 6.52 prescriptions |
|---|---|
| SD | 4.55 prescriptions |
| Min | 0 prescriptions |
| p1 | 0 prescriptions |
| p5 | 0 prescriptions |
| p25 | 2 prescriptions |
| Median | 7 prescriptions |
| p75 | 10 prescriptions |
| p95 | 14 prescriptions |
| p99 | 16 prescriptions |
| Max | 20 prescriptions |
| IQR | 8 prescriptions |
| Skewness | 0.10 |
| Excess kurtosis | -1.00 |
| CV | 0.70 |
| Zeros | 97 rows |
| IQR outliers | 0 rows |
Examples: 0 7 11
on_insulinbooleanboolean0.0%2mode false (76.8%)
Normalized entropy 0.781 (1 = perfectly balanced) · imbalance ratio 3.3× (most ÷ least frequent)
Examples: false true
on_chronic_medicationsbooleanboolean0.0%2mode true (90.3%)
Normalized entropy 0.459 (1 = perfectly balanced) · imbalance ratio 9.3× (most ÷ least frequent)
Examples: false true
on_statinbooleanboolean0.0%2mode false (70.7%)
Normalized entropy 0.873 (1 = perfectly balanced) · imbalance ratio 2.4× (most ÷ least frequent)
Examples: false true
on_antihypertensivebooleanboolean0.0%2mode true (53.9%)
Normalized entropy 0.996 (1 = perfectly balanced) · imbalance ratio 1.2× (most ÷ least frequent)
Examples: false true
t2dm_progression_propensity 0–1 scorenumericfloat640.0%1000mean 0.51 · median 0.52 · SD 0.30
| Mean | 0.51 0–1 score |
|---|---|
| SD | 0.30 0–1 score |
| Min | 0 0–1 score |
| p1 | 0.01 0–1 score |
| p5 | 0.04 0–1 score |
| p25 | 0.25 0–1 score |
| Median | 0.52 0–1 score |
| p75 | 0.78 0–1 score |
| p95 | 0.96 0–1 score |
| p99 | 0.99 0–1 score |
| Max | 1.00 0–1 score |
| IQR | 0.53 0–1 score |
| Skewness | -0.05 |
| Excess kurtosis | -1.24 |
| CV | 0.58 |
| Zeros | 0 rows |
| IQR outliers | 0 rows |
Examples: 0.572 0.679 0.448
t2dm_biological_stage stagenumericInt640.0%5mean 1.72 · median 1 · SD 1.02
| Mean | 1.72 stage |
|---|---|
| SD | 1.02 stage |
| Min | 1 stage |
| p1 | 1 stage |
| p5 | 1 stage |
| p25 | 1 stage |
| Median | 1 stage |
| p75 | 2 stage |
| p95 | 4 stage |
| p99 | 5 stage |
| Max | 5 stage |
| IQR | 1 stage |
| Skewness | 1.41 |
| Excess kurtosis | 1.22 |
| CV | 0.59 |
| Zeros | 0 rows |
| IQR outliers | 84 rows |
Examples: 1 2 3
t2dm_clinical_stage stagenumericInt6414.3%5mean 1.72 · median 1 · SD 1.01
Missing by design: Only for people with type 2 diabetes.
| Mean | 1.72 stage |
|---|---|
| SD | 1.01 stage |
| Min | 1 stage |
| p1 | 1 stage |
| p5 | 1 stage |
| p25 | 1 stage |
| Median | 1 stage |
| p75 | 2 stage |
| p95 | 4 stage |
| p99 | 5 stage |
| Max | 5 stage |
| IQR | 1 stage |
| Skewness | 1.41 |
| Excess kurtosis | 1.22 |
| CV | 0.59 |
| Zeros | 0 rows |
| IQR outliers | 72 rows |
Examples: 1 3 2
t2dm_detection_lag_years yearsnumericfloat640.0%99mean 4.89 · median 4.40 · SD 2.11
| Mean | 4.89 years |
|---|---|
| SD | 2.11 years |
| Min | 2 years |
| p1 | 2.10 years |
| p5 | 2.30 years |
| p25 | 3.40 years |
| Median | 4.40 years |
| p75 | 6 years |
| p95 | 9.10 years |
| p99 | 11.30 years |
| Max | 15.40 years |
| IQR | 2.60 years |
| Skewness | 1.15 |
| Excess kurtosis | 1.35 |
| CV | 0.43 |
| Zeros | 0 rows |
| IQR outliers | 34 rows |
Examples: 3 6.5 3.9
t2dm_neuropathybooleanboolean0.0%2mode false (75.1%)
Normalized entropy 0.810 (1 = perfectly balanced) · imbalance ratio 3.0× (most ÷ least frequent)
Examples: false true
t2dm_retinopathybooleanboolean0.0%2mode false (73.0%)
Normalized entropy 0.841 (1 = perfectly balanced) · imbalance ratio 2.7× (most ÷ least frequent)
Examples: false true
t2dm_nephropathybooleanboolean0.0%2mode false (78.3%)
Normalized entropy 0.755 (1 = perfectly balanced) · imbalance ratio 3.6× (most ÷ least frequent)
Examples: true false
preferred_namecategoricalcategory73.9%58mode Chri (4.2%)
Missing by design: Only for people who go by a short form of their name.
Normalized entropy 0.967 (1 = perfectly balanced) · imbalance ratio 11.0× (most ÷ least frequent) · 174 rows in other categories
Examples: Luis Dona Jaco
death_datedatedatetime64[ns]91.4%852021-06-18 to 2026-05-18
Missing by design: Only for people who have died.
Range: 2021-06-18 to 2026-05-18
Examples: 2023-10-18 2023-08-19 2023-12-13
death_causecategoricalcategory91.4%7mode cvd (26.7%)
Missing by design: Only for people who have died.
Normalized entropy 0.903 (1 = perfectly balanced) · imbalance ratio 4.6× (most ÷ least frequent)
Examples: other cancer dka
address_line_2free textstring73.8%189e.g. Apt 271
Missing by design: Only for addresses with a unit or apartment.
Examples: Apt 271 Apt 273 Apt 96
§ 04Correlations
Strongest relationships
| Field A | Field B | Method | Value | n |
|---|---|---|---|---|
ckd_status | egfr_value | η (correlation ratio) | +0.893 | 1000 |
bmi | waist_circumference_cm | Pearson r | +0.848 | 1000 |
a1c_value | t2dm_clinical_stage | Spearman ρ | +0.840 | 857 |
a1c_value | t2dm_biological_stage | Spearman ρ | +0.837 | 1000 |
t2dm_clinical_stage | t2dm_detection_lag_years | Pearson r | +0.833 | 857 |
t2dm_biological_stage | t2dm_detection_lag_years | Pearson r | +0.823 | 1000 |
race | ethnicity | Cramér's V | +0.804 | 1000 |
weight_kg | waist_circumference_cm | Pearson r | +0.797 | 1000 |
a1c_value | t2dm_progression_propensity | Spearman ρ | +0.753 | 1000 |
insurance_type | age | η (correlation ratio) | +0.732 | 1000 |
sex_at_birth | height_cm | η (correlation ratio) | +0.720 | 1000 |
gender_identity | height_cm | η (correlation ratio) | +0.691 | 1000 |
pronouns | height_cm | η (correlation ratio) | +0.691 | 1000 |
a1c_value | t2dm_detection_lag_years | Pearson r | +0.672 | 1000 |
t2dm_progression_propensity | t2dm_detection_lag_years | Pearson r | +0.658 | 1000 |
hypertension_status | on_antihypertensive | Cramér's V | +0.650 | 1000 |
diabetes_duration_years | t2dm_biological_stage | Pearson r | +0.648 | 1000 |
employment_status | age | η (correlation ratio) | +0.644 | 1000 |
diabetes_duration_years | t2dm_clinical_stage | Pearson r | +0.639 | 857 |
hypertension_status | systolic_bp_avg | η (correlation ratio) | +0.609 | 1000 |
height_cm | weight_kg | Pearson r | +0.554 | 1000 |
marital_status | household_size | η (correlation ratio) | +0.549 | 1000 |
ckd_status | t2dm_biological_stage | η (correlation ratio) | +0.543 | 1000 |
ckd_status | t2dm_clinical_stage | η (correlation ratio) | +0.537 | 857 |
diabetes_duration_years | t2dm_detection_lag_years | Pearson r | +0.532 | 1000 |
a1c_value | diabetes_duration_years | Pearson r | +0.511 | 1000 |
diabetes_duration_years | t2dm_progression_propensity | Spearman ρ | +0.509 | 1000 |
egfr_value | t2dm_biological_stage | Pearson r | -0.454 | 1000 |
ckd_status | t2dm_detection_lag_years | η (correlation ratio) | +0.451 | 1000 |
egfr_value | t2dm_clinical_stage | Pearson r | -0.450 | 857 |
Related by construction (left out above)
One field is computed from the other in the generator. Worth knowing before modelling: these pairs leak information.
| Field A | Field B | Method | Value |
|---|---|---|---|
t2dm_biological_stage | t2dm_clinical_stage | Pearson r | +1.000 |
gender_identity | pronouns | Cramér's V | +0.999 |
sex_at_birth | gender_identity | Cramér's V | +0.963 |
sex_at_birth | pronouns | Cramér's V | +0.963 |
weight_kg | bmi | Pearson r | +0.862 |
t2dm_progression_propensity | t2dm_biological_stage | Pearson r | +0.832 |
t2dm_progression_propensity | t2dm_clinical_stage | Pearson r | +0.829 |
on_chronic_medications | number_of_prescriptions | η (correlation ratio) | +0.469 |
occupation_label | industry | Cramér's V | +0.411 |
height_cm | bmi | Pearson r | +0.068 |
diabetes_status | t2dm_detection_lag_years | η (correlation ratio) | +0.000 |
Pearson r · numeric fields
Brass positive, blue negative; pairwise-complete records. Hover a cell for the exact value.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 age | 1.00 | -.05 | .05 | -.02 | .00 | .01 | -.01 | -.01 | .28 | .10 | -.28 | .07 | .09 | .10 | .14 | .05 | -.03 | -.02 | -.02 | -.05 |
| 2 household_size | -.05 | 1.00 | -.06 | -.01 | .02 | .02 | .01 | -.02 | .02 | -.01 | .00 | -.00 | -.01 | -.00 | -.03 | .03 | -.03 | -.01 | -.06 | -.01 |
| 3 sleep_hours_avg | .05 | -.06 | 1.00 | .05 | .04 | .01 | .01 | .04 | .02 | -.00 | -.04 | .03 | .00 | -.08 | -.03 | -.05 | .05 | .04 | .03 | .04 |
| 4 height_cm | -.02 | -.01 | .05 | 1.00 | .55 | .07 | .19 | -.01 | .00 | -.06 | .03 | -.04 | -.01 | .03 | -.04 | -.05 | -.03 | -.03 | -.05 | -.02 |
| 5 weight_kg | .00 | .02 | .04 | .55 | 1.00 | .86 | .80 | .03 | .06 | -.01 | .03 | -.04 | .07 | .01 | .07 | -.01 | -.01 | -.03 | -.04 | -.02 |
| 6 bmi | .01 | .02 | .01 | .07 | .86 | 1.00 | .85 | .04 | .08 | .03 | .01 | -.02 | .10 | -.01 | .10 | .02 | -.01 | -.02 | -.03 | -.01 |
| 7 waist_circumference_cm | -.01 | .01 | .01 | .19 | .80 | .85 | 1.00 | .02 | .04 | .02 | .00 | -.02 | .08 | .01 | .09 | .01 | .00 | -.02 | -.02 | -.00 |
| 8 a1c_value | -.01 | -.02 | .04 | -.01 | .03 | .04 | .02 | 1.00 | .01 | .03 | -.35 | .51 | .09 | .01 | -.01 | .16 | .74 | .83 | .84 | .67 |
| 9 systolic_bp_avg | .28 | .02 | .02 | .00 | .06 | .08 | .04 | .01 | 1.00 | .23 | -.10 | .04 | .19 | .11 | .07 | .11 | -.01 | .00 | .00 | .01 |
| 10 diastolic_bp_avg | .10 | -.01 | -.00 | -.06 | -.01 | .03 | .02 | .03 | .23 | 1.00 | -.07 | .00 | .17 | .05 | .06 | .04 | .02 | .04 | .06 | .06 |
| 11 egfr_value | -.28 | .00 | -.04 | .03 | .03 | .01 | .00 | -.35 | -.10 | -.07 | 1.00 | -.38 | -.12 | -.02 | -.02 | -.12 | -.33 | -.45 | -.45 | -.38 |
| 12 diabetes_duration_years | .07 | -.00 | .03 | -.04 | -.04 | -.02 | -.02 | .51 | .04 | .00 | -.38 | 1.00 | .07 | -.01 | .05 | .15 | .50 | .65 | .64 | .53 |
| 13 visits_past_year | .09 | -.01 | .00 | -.01 | .07 | .10 | .08 | .09 | .19 | .17 | -.12 | .07 | 1.00 | .07 | -.00 | .09 | .11 | .12 | .12 | .10 |
| 14 er_visits_past_year | .10 | -.00 | -.08 | .03 | .01 | -.01 | .01 | .01 | .11 | .05 | -.02 | -.01 | .07 | 1.00 | .01 | .04 | .00 | .02 | .01 | -.02 |
| 15 hospitalizations_past_year | .14 | -.03 | -.03 | -.04 | .07 | .10 | .09 | -.01 | .07 | .06 | -.02 | .05 | -.00 | .01 | 1.00 | .01 | -.02 | .00 | -.01 | .00 |
| 16 number_of_prescriptions | .05 | .03 | -.05 | -.05 | -.01 | .02 | .01 | .16 | .11 | .04 | -.12 | .15 | .09 | .04 | .01 | 1.00 | .14 | .18 | .20 | .14 |
| 17 t2dm_progression_propensity | -.03 | -.03 | .05 | -.03 | -.01 | -.01 | .00 | .74 | -.01 | .02 | -.33 | .50 | .11 | .00 | -.02 | .14 | 1.00 | .83 | .83 | .66 |
| 18 t2dm_biological_stage | -.02 | -.01 | .04 | -.03 | -.03 | -.02 | -.02 | .83 | .00 | .04 | -.45 | .65 | .12 | .02 | .00 | .18 | .83 | 1.00 | 1.00 | .82 |
| 19 t2dm_clinical_stage | -.02 | -.06 | .03 | -.05 | -.04 | -.03 | -.02 | .84 | .00 | .06 | -.45 | .64 | .12 | .01 | -.01 | .20 | .83 | 1.00 | 1.00 | .83 |
| 20 t2dm_detection_lag_years | -.05 | -.01 | .04 | -.02 | -.02 | -.01 | -.00 | .67 | .01 | .06 | -.38 | .53 | .10 | -.02 | .00 | .14 | .66 | .82 | .83 | 1.00 |
Spearman ρ · numeric fields, rank-based
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 age | 1.00 | -.05 | .03 | -.03 | .00 | .03 | -.01 | -.00 | .29 | .12 | -.38 | .04 | .09 | .10 | .14 | .06 | -.03 | -.02 | -.02 | -.05 |
| 2 household_size | -.05 | 1.00 | -.06 | .00 | .01 | .01 | .00 | -.04 | .01 | -.01 | .00 | -.01 | -.01 | -.02 | -.03 | .03 | -.03 | -.02 | -.06 | -.01 |
| 3 sleep_hours_avg | .03 | -.06 | 1.00 | .07 | .06 | .04 | .03 | .06 | .03 | .00 | -.04 | .03 | .01 | -.08 | -.04 | -.04 | .06 | .04 | .03 | .04 |
| 4 height_cm | -.03 | .00 | .07 | 1.00 | .55 | .06 | .19 | -.01 | -.01 | -.05 | .02 | -.02 | -.02 | .05 | -.05 | -.03 | -.03 | -.02 | -.04 | -.02 |
| 5 weight_kg | .00 | .01 | .06 | .55 | 1.00 | .85 | .78 | .05 | .05 | -.03 | -.02 | -.01 | .06 | .00 | .07 | .01 | -.01 | -.01 | -.03 | -.01 |
| 6 bmi | .03 | .01 | .04 | .06 | .85 | 1.00 | .82 | .06 | .07 | .01 | -.04 | -.00 | .09 | -.03 | .11 | .03 | .01 | .00 | -.01 | .01 |
| 7 waist_circumference_cm | -.01 | .00 | .03 | .19 | .78 | .82 | 1.00 | .05 | .03 | .01 | -.03 | -.00 | .08 | .01 | .10 | .02 | .01 | .00 | -.01 | .02 |
| 8 a1c_value | -.00 | -.04 | .06 | -.01 | .05 | .06 | .05 | 1.00 | .00 | .01 | -.23 | .49 | .07 | .01 | -.00 | .15 | .75 | .84 | .84 | .63 |
| 9 systolic_bp_avg | .29 | .01 | .03 | -.01 | .05 | .07 | .03 | .00 | 1.00 | .24 | -.15 | .03 | .18 | .11 | .06 | .13 | -.01 | -.01 | -.01 | .01 |
| 10 diastolic_bp_avg | .12 | -.01 | .00 | -.05 | -.03 | .01 | .01 | .01 | .24 | 1.00 | -.09 | .00 | .16 | .06 | .06 | .05 | .01 | .02 | .03 | .04 |
| 11 egfr_value | -.38 | .00 | -.04 | .02 | -.02 | -.04 | -.03 | -.23 | -.15 | -.09 | 1.00 | -.28 | -.13 | -.04 | -.03 | -.12 | -.26 | -.29 | -.29 | -.23 |
| 12 diabetes_duration_years | .04 | -.01 | .03 | -.02 | -.01 | -.00 | -.00 | .49 | .03 | .00 | -.28 | 1.00 | .08 | -.02 | .02 | .13 | .51 | .60 | .60 | .45 |
| 13 visits_past_year | .09 | -.01 | .01 | -.02 | .06 | .09 | .08 | .07 | .18 | .16 | -.13 | .08 | 1.00 | .06 | .01 | .11 | .11 | .10 | .10 | .09 |
| 14 er_visits_past_year | .10 | -.02 | -.08 | .05 | .00 | -.03 | .01 | .01 | .11 | .06 | -.04 | -.02 | .06 | 1.00 | .03 | .05 | .01 | .02 | .02 | -.02 |
| 15 hospitalizations_past_year | .14 | -.03 | -.04 | -.05 | .07 | .11 | .10 | -.00 | .06 | .06 | -.03 | .02 | .01 | .03 | 1.00 | .02 | -.02 | .01 | -.01 | .02 |
| 16 number_of_prescriptions | .06 | .03 | -.04 | -.03 | .01 | .03 | .02 | .15 | .13 | .05 | -.12 | .13 | .11 | .05 | .02 | 1.00 | .14 | .17 | .19 | .12 |
| 17 t2dm_progression_propensity | -.03 | -.03 | .06 | -.03 | -.01 | .01 | .01 | .75 | -.01 | .01 | -.26 | .51 | .11 | .01 | -.02 | .14 | 1.00 | .89 | .89 | .65 |
| 18 t2dm_biological_stage | -.02 | -.02 | .04 | -.02 | -.01 | .00 | .00 | .84 | -.01 | .02 | -.29 | .60 | .10 | .02 | .01 | .17 | .89 | 1.00 | 1.00 | .74 |
| 19 t2dm_clinical_stage | -.02 | -.06 | .03 | -.04 | -.03 | -.01 | -.01 | .84 | -.01 | .03 | -.29 | .60 | .10 | .02 | -.01 | .19 | .89 | 1.00 | 1.00 | .75 |
| 20 t2dm_detection_lag_years | -.05 | -.01 | .04 | -.02 | -.01 | .01 | .02 | .63 | .01 | .04 | -.23 | .45 | .09 | -.02 | .02 | .12 | .65 | .74 | .75 | 1.00 |
Cramér's V · categorical and boolean fields
0 = unrelated, 1 = one field fully determines the other. Bias-corrected.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 sex_at_birth | |||||||||||||||||||||||||||||||||||||||
| 2 gender_identity | |||||||||||||||||||||||||||||||||||||||
| 3 pronouns | |||||||||||||||||||||||||||||||||||||||
| 4 race | |||||||||||||||||||||||||||||||||||||||
| 5 ethnicity | |||||||||||||||||||||||||||||||||||||||
| 6 state | |||||||||||||||||||||||||||||||||||||||
| 7 urbanicity | |||||||||||||||||||||||||||||||||||||||
| 8 marital_status | |||||||||||||||||||||||||||||||||||||||
| 9 education | |||||||||||||||||||||||||||||||||||||||
| 10 employment_status | |||||||||||||||||||||||||||||||||||||||
| 11 occupation_label | |||||||||||||||||||||||||||||||||||||||
| 12 industry | |||||||||||||||||||||||||||||||||||||||
| 13 household_income_bracket | |||||||||||||||||||||||||||||||||||||||
| 14 insurance_type | |||||||||||||||||||||||||||||||||||||||
| 15 homeowner_status | |||||||||||||||||||||||||||||||||||||||
| 16 smoking_status | |||||||||||||||||||||||||||||||||||||||
| 17 alcohol_use | |||||||||||||||||||||||||||||||||||||||
| 18 exercise_frequency | |||||||||||||||||||||||||||||||||||||||
| 19 diabetes_status | |||||||||||||||||||||||||||||||||||||||
| 20 hypertension_status | |||||||||||||||||||||||||||||||||||||||
| 21 hyperlipidemia_status | |||||||||||||||||||||||||||||||||||||||
| 22 ckd_status | |||||||||||||||||||||||||||||||||||||||
| 23 family_history_diabetes | |||||||||||||||||||||||||||||||||||||||
| 24 gestational_diabetes_history | |||||||||||||||||||||||||||||||||||||||
| 25 cardiovascular_disease_history | |||||||||||||||||||||||||||||||||||||||
| 26 cancer_history | |||||||||||||||||||||||||||||||||||||||
| 27 depression_anxiety_history | |||||||||||||||||||||||||||||||||||||||
| 28 pregnancy_status | |||||||||||||||||||||||||||||||||||||||
| 29 has_primary_care_provider | |||||||||||||||||||||||||||||||||||||||
| 30 has_specialty_care | |||||||||||||||||||||||||||||||||||||||
| 31 food_insecurity | |||||||||||||||||||||||||||||||||||||||
| 32 on_insulin | |||||||||||||||||||||||||||||||||||||||
| 33 on_chronic_medications | |||||||||||||||||||||||||||||||||||||||
| 34 on_statin | |||||||||||||||||||||||||||||||||||||||
| 35 on_antihypertensive | |||||||||||||||||||||||||||||||||||||||
| 36 t2dm_neuropathy | |||||||||||||||||||||||||||||||||||||||
| 37 t2dm_retinopathy | |||||||||||||||||||||||||||||||||||||||
| 38 t2dm_nephropathy | |||||||||||||||||||||||||||||||||||||||
| 39 death_cause |
Correlation ratio η · categorical rows × numeric columns
How much of a numeric field's variance a categorical field explains, adjusted for chance. Column numbers follow the Pearson matrix order.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sex_at_birth | .00 | .02 | .00 | .72 | .35 | .00 | .17 | .00 | .00 | .00 | .00 | .00 | .00 | .04 | .06 | .03 | .02 | .03 | .05 | .02 |
| gender_identity | .00 | .06 | .00 | .69 | .35 | .09 | .19 | .00 | .00 | .00 | .00 | .00 | .00 | .09 | .01 | .08 | .00 | .00 | .00 | .00 |
| pronouns | .00 | .07 | .00 | .69 | .35 | .09 | .19 | .00 | .00 | .00 | .00 | .00 | .03 | .06 | .00 | .08 | .00 | .00 | .02 | .00 |
| race | .03 | .06 | .09 | .00 | .00 | .01 | .00 | .00 | .08 | .02 | .00 | .05 | .00 | .00 | .00 | .00 | .00 | .04 | .04 | .00 |
| ethnicity | .02 | .00 | .00 | .01 | .00 | .00 | .00 | .00 | .06 | .04 | .00 | .05 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 |
| state | .00 | .09 | .00 | .07 | .00 | .00 | .00 | .00 | .07 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 |
| urbanicity | .00 | .00 | .00 | .00 | .03 | .07 | .00 | .00 | .00 | .02 | .00 | .04 | .00 | .00 | .03 | .00 | .00 | .00 | .00 | .20 |
| marital_status | .33 | .55 | .00 | .00 | .00 | .01 | .00 | .04 | .08 | .03 | .12 | .02 | .00 | .10 | .00 | .00 | .02 | .02 | .09 | .07 |
| education | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .06 | .00 | .00 | .07 | .02 | .04 | .04 | .04 | .00 | .00 | .03 | .00 | .05 |
| employment_status | .64 | .00 | .05 | .05 | .03 | .00 | .02 | .00 | .18 | .02 | .21 | .00 | .06 | .00 | .11 | .07 | .00 | .00 | .00 | .00 |
| occupation_label | .02 | .00 | .00 | .29 | .16 | .00 | .10 | .06 | .00 | .00 | .05 | .06 | .00 | .00 | .08 | .00 | .07 | .00 | .00 | .00 |
| industry | .04 | .00 | .00 | .16 | .09 | .00 | .10 | .00 | .00 | .00 | .00 | .05 | .00 | .10 | .10 | .06 | .00 | .00 | .00 | .00 |
| household_income_bracket | .14 | .00 | .00 | .00 | .10 | .09 | .09 | .06 | .00 | .04 | .02 | .05 | .00 | .00 | .00 | .00 | .03 | .05 | .05 | .29 |
| insurance_type | .73 | .00 | .07 | .00 | .00 | .04 | .00 | .00 | .18 | .00 | .19 | .04 | .00 | .09 | .09 | .00 | .00 | .00 | .00 | .41 |
| homeowner_status | .00 | .00 | .00 | .08 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .06 | .00 | .03 | .00 | .06 | .00 | .00 | .00 | .11 |
| smoking_status | .06 | .00 | .00 | .06 | .05 | .00 | .01 | .00 | .02 | .08 | .01 | .00 | .00 | .02 | .00 | .04 | .00 | .00 | .00 | .00 |
| alcohol_use | .03 | .04 | .07 | .15 | .00 | .00 | .00 | .00 | .00 | .02 | .05 | .00 | .03 | .06 | .08 | .03 | .00 | .00 | .00 | .00 |
| exercise_frequency | .12 | .07 | .04 | .00 | .05 | .05 | .04 | .04 | .02 | .00 | .03 | .02 | .00 | .00 | .00 | .02 | .03 | .02 | .05 | .00 |
| diabetes_status | .00 | .00 | .01 | .06 | .08 | .06 | .05 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | |
| hypertension_status | .23 | .00 | .05 | .05 | .17 | .18 | .13 | .05 | .61 | .41 | .12 | .00 | .28 | .10 | .06 | .19 | .00 | .00 | .02 | .00 |
| hyperlipidemia_status | .20 | .00 | .00 | .00 | .00 | .00 | .02 | .00 | .11 | .04 | .00 | .00 | .20 | .12 | .08 | .12 | .00 | .00 | .00 | .00 |
| ckd_status | .30 | .00 | .00 | .00 | .08 | .08 | .02 | .44 | .14 | .11 | .89 | .45 | .17 | .09 | .08 | .14 | .42 | .54 | .54 | .45 |
| family_history_diabetes | .07 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .01 | .04 | .00 | .01 | .00 | .00 | .00 | .00 | .00 |
| gestational_diabetes_history | .02 | .00 | .00 | .03 | .00 | .00 | .00 | .00 | .00 | .00 | .00 | .06 | .00 | .00 | .13 | .00 | .00 | .00 | .00 | .00 |
| cardiovascular_disease_history | .38 | .00 | .05 | .00 | .00 | .00 | .00 | .00 | .11 | .00 | .03 | .00 | .01 | .04 | .06 | .04 | .00 | .00 | .00 | .00 |
| cancer_history | .22 | .00 | .00 | .00 | .00 | .00 | .00 | .03 | .00 | .00 | .08 | .00 | .06 | .01 | .00 | .00 | .03 | .05 | .05 | .03 |
| depression_anxiety_history | .14 | .00 | .09 | .07 | .00 | .00 | .00 | .08 | .05 | .00 | .00 | .06 | .00 | .04 | .05 | .00 | .10 | .09 | .06 | .06 |
| pregnancy_status | .43 | .08 | .00 | .30 | .14 | .00 | .07 | .02 | .17 | .04 | .13 | .06 | .04 | .01 | .02 | .00 | .02 | .03 | .03 | .00 |
| has_primary_care_provider | .04 | .08 | .00 | .00 | .00 | .00 | .00 | .06 | .05 | .00 | .00 | .04 | .06 | .04 | .00 | .00 | .02 | .05 | .05 | .04 |
| has_specialty_care | .05 | .00 | .02 | .00 | .09 | .11 | .08 | .04 | .08 | .08 | .04 | .00 | .12 | .03 | .01 | .01 | .06 | .05 | .00 | .00 |
| food_insecurity | .08 | .00 | .00 | .03 | .09 | .08 | .05 | .05 | .00 | .07 | .00 | .00 | .08 | .00 | .00 | .03 | .00 | .03 | .06 | .09 |
| on_insulin | .00 | .00 | .00 | .00 | .05 | .07 | .06 | .27 | .05 | .00 | .15 | .30 | .11 | .03 | .03 | .17 | .24 | .31 | .34 | .27 |
| on_chronic_medications | .11 | .04 | .00 | .00 | .01 | .00 | .01 | .06 | .15 | .08 | .09 | .08 | .13 | .02 | .05 | .47 | .03 | .05 | .08 | .04 |
| on_statin | .16 | .06 | .00 | .00 | .00 | .00 | .00 | .03 | .01 | .00 | .04 | .00 | .03 | .01 | .00 | .17 | .00 | .00 | .04 | .00 |
| on_antihypertensive | .15 | .02 | .00 | .00 | .07 | .08 | .06 | .03 | .23 | .06 | .03 | .00 | .09 | .09 | .04 | .16 | .00 | .00 | .00 | .00 |
| t2dm_neuropathy | .00 | .00 | .03 | .05 | .00 | .04 | .02 | .32 | .08 | .00 | .21 | .37 | .00 | .00 | .00 | .11 | .31 | .39 | .38 | .33 |
| t2dm_retinopathy | .00 | .00 | .03 | .00 | .00 | .00 | .03 | .25 | .00 | .02 | .16 | .30 | .00 | .00 | .00 | .00 | .25 | .31 | .28 | .27 |
| t2dm_nephropathy | .03 | .00 | .04 | .05 | .05 | .02 | .00 | .25 | .00 | .00 | .17 | .34 | .00 | .02 | .00 | .05 | .24 | .31 | .29 | .28 |
| death_cause | .00 | .00 | .18 | .00 | .20 | .08 | .25 | .00 | .00 | .24 | .00 | .00 | .13 | .00 | .19 | .00 | .10 | .00 | .00 | .00 |
§ 05Missingness
68 fields are complete. Fields below have empty values; most are missing by design (the attribute does not apply to that person).
| Field | Missing | Share | Reason |
|---|---|---|---|
death_cause | 914 rows | 91.4% | Only for people who have died |
death_date | 914 rows | 91.4% | Only for people who have died |
preferred_name | 739 rows | 73.9% | Only for people who go by a short form of their name |
address_line_2 | 738 rows | 73.8% | Only for addresses with a unit or apartment |
gestational_diabetes_history | 552 rows | 55.2% | Only for women (18+) |
employer_ein | 399 rows | 39.9% | Only for employed people |
industry | 399 rows | 39.9% | Only for employed people |
occupation_label | 399 rows | 39.9% | Only for employed people |
t2dm_clinical_stage | 143 rows | 14.3% | Only for people with type 2 diabetes |
Fields that go missing together
| Field A | Field B | Jaccard overlap |
|---|---|---|
death_cause | death_date | 1.000 |
employer_ein | industry | 1.000 |
employer_ein | occupation_label | 1.000 |
industry | occupation_label | 1.000 |
death_cause | preferred_name | 0.688 |
death_date | preferred_name | 0.688 |
death_cause | address_line_2 | 0.687 |
death_date | address_line_2 | 0.687 |
preferred_name | address_line_2 | 0.588 |
death_cause | gestational_diabetes_history | 0.516 |
death_date | gestational_diabetes_history | 0.516 |
§ 06Stratified tables
By age band and sex at birth
| Group | n | Mean BMI (kg/m²) | Mean HbA1c (%) | Mean systolic BP (mmHg) | Obesity (%) | Diabetes (%) | Hypertension (%) | CKD (%) |
|---|---|---|---|---|---|---|---|---|
| 30–44 · female | 71 | 32.77 | 7.24 | 122.56 | 66.2 | 100.0 | 62.0 | 31.0 |
| 30–44 · male | 101 | 32.18 | 7.52 | 124.53 | 58.4 | 100.0 | 71.3 | 24.8 |
| 30–44 · all | 172 | 32.42 | 7.41 | 123.72 | 61.6 | 100.0 | 67.4 | 27.3 |
| 45–64 · female | 235 | 32.03 | 7.28 | 129.58 | 56.6 | 100.0 | 77.5 | 36.6 |
| 45–64 · male | 299 | 32.21 | 7.25 | 129.79 | 64.5 | 100.0 | 80.9 | 38.1 |
| 45–64 · all | 534 | 32.13 | 7.26 | 129.70 | 61.0 | 100.0 | 79.4 | 37.5 |
| 65+ · female | 142 | 32.56 | 7.52 | 135.65 | 64.1 | 100.0 | 92.2 | 64.1 |
| 65+ · male | 152 | 32.31 | 7.21 | 135.39 | 62.5 | 100.0 | 91.5 | 66.5 |
| 65+ · all | 294 | 32.43 | 7.36 | 135.52 | 63.3 | 100.0 | 91.8 | 65.3 |
| All ages | 1000 | 32.27 | 7.32 | 130.38 | 61.8 | 100.0 | 81.0 | 43.9 |
Diabetes = diagnosed or undiagnosed type 2, or type 1.
By diabetes status
| Diabetes status | n | Mean HbA1c (%) | Mean BMI (kg/m²) | Mean eGFR (mL/min/1.73m²) | On insulin (%) |
|---|---|---|---|---|---|
| diagnosed t2dm | 857 | 7.32 | 32.09 | 82.25 | 27.1 |
| undiagnosed t2dm | 143 | 7.30 | 33.34 | 80.83 | 0.0 |
§ 07Type 2 diabetes
1000 people with T2DM staging.
| Biological stage | People | Mean HbA1c |
|---|---|---|
| stage 1 | 570 | 6.36% |
| stage 2 | 242 | 7.72% |
| stage 3 | 104 | 9.28% |
| stage 4 | 63 | 10.94% |
| stage 5 | 21 | 8.02% |
§ 08Distributions
§ 09Methods
- Quantiles
- Linear interpolation between order statistics (the pandas and NumPy default). SD uses n − 1.
- Shape
- Skewness g1 = m3 / m2^1.5; excess kurtosis g2 = m4 / m2² − 3 (0 for a normal distribution). Outliers: outside p25 − 1.5·IQR to p75 + 1.5·IQR.
- Pearson and Spearman
- Computed on pairwise-complete records. Spearman uses average ranks for ties.
- Cramér's V
- Bias-corrected (Bergsma 2013), so fields with many categories or small samples do not read high by chance. Name fields and near-unique text fields are left out.
- η (correlation ratio)
- √ε², where ε² = (SSbetween − (g − 1)·MSwithin) / SStotal: the share of a numeric field's variance explained by a categorical one, adjusted for chance. Needs at least 5 records per group.
- Minimum sample
- Correlations and associations need at least 30 pairwise-complete records; smaller pairs are left blank.
- Reference intervals
- Wilson score 95% interval for shares; mean ± 1.96·SD/√n for means. z = (p̂ − p₀) / √(p₀(1 − p₀)/n).
- Entropy
- Shannon entropy divided by ln(number of categories).
- Incidence
- Event count × 1,000 / person-years of follow-up (Σ last − first cycle date). Events at the first cycle, such as diagnosis, are included in the count.
- Fingerprint
- FNV-1a 64 over the records as compact JSON, one per line, in dataset order. Two files with the same fingerprint hold the same records.