Welcome to ClientVPS Mirrors

Demographics Tab

Demographics Tab

Introduction

The Demographics tab summarizes cohort composition and concept-level demographic shifts.

The next example derives a few cohort-level summary values from the bundled lc500 patient data. These are the same kinds of inputs shown in the KPI cards and demographic overview panels.

if (requireNamespace("nanoparquet", quietly = TRUE)) {
  studyDir <- system.file("example", "st", package = "CohortContrast")
  study <- CohortContrast::loadCohortContrastStudy("lc500", pathToResults = studyDir)

  # Summarize overall cohort size and a couple of basic demographic indicators.
  data.frame(
    n_patients = nrow(study$data_person),
    median_birth_year = stats::median(study$data_person$YEAR_OF_BIRTH),
    male_proportion = mean(study$data_person$GENDER_CONCEPT_ID == 8507)
  )
}
#>   n_patients median_birth_year male_proportion
#> 1       1000              1953           0.538

The full Demographics tab expands this with cluster-specific summaries and concept-level age and sex shifts.

Demographics overview
Demographics overview

Components

Demographics tables
Demographics tables

Controls

Ordinal progression panel
Ordinal progression panel

Patient vs Summary mode behavior

Both modes use the same tab layout and output structure to keep interpretation consistent.

Interpretation

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.