For the complete documentation index, see llms.txt. This page is also available as Markdown.

Population overview

Summarize patient numbers by condition, optionally broken down by dataset.

Summarize patient numbers by condition, optionally broken down by dataset.

Patient count matrix (condition × dataset)

Description

Analysis summary

Counts the patients available per condition, optionally broken down per dataset, to gauge cohort sizes before any deeper analysis.

Computation

Counts distinct patients per condition — and per dataset when a dataset column is given with more than one value — returning a count table; with exactly one condition, the count is returned as a sentence instead.

When to use

Use as the entry point of a multi-analysis report: it answers 'how many patients are there per condition (and per dataset)'. For per-variable breakdowns of those patients, use this module's multi-column summary mode.

Caveats

Counts are distinct patients per cell of the matrix; a patient appears once per condition it belongs to, not once overall.

Input columns

input columns
column
type
required
description

patient_id

any

required

Patient identifier.

x_group

categorical

required

Condition name — becomes the row axis of the count matrix.

y_group

categorical

optional

Dataset name — becomes the column axis of the count matrix. Optional: when absent or with a single unique value, a simpler single-column table (or a sentence f…

Visualizations

  • population_overview How to read: A Markdown table with one row per condition and one column per dataset; each cell is the number of distinct patients with that condition in that dataset (blank when none). With a single dataset the table shrinks to condition → patient count, and with a single condition to a one-sentence count.

Last updated

Was this helpful?