Author-reviewedv1.0.0

Categorical Data

Categorical data record which of a set of categories each observation falls in, such as alive or dead or an EQ-5D level, instead of a measured amount.

Last reviewed byDr Darrin Baines

Concept Architecture

Categorical Data in Trials, Meta-Analysis and Decision Models

Many of the outcomes that drive health technology assessment are recorded as categories, not as measured amounts. Death, hospital admission, relapse, response to treatment and the levels of the EQ-5D questionnaire each place a patient in one of a fixed set of groups, and the analysis then works with counts and proportions. The form of the data fixes which effect measures a trial or meta-analysis can report, and those measures become the event probabilities, transition probabilities and treatment effects that a decision model runs on. Measured quantities such as blood pressure or costs are continuous data, the subject of a separate article on continuous data.

Nominal, ordinal and binary categories

The Cochrane Handbook asks review authors to identify the data type of each outcome early, because the available effect measures depend on it. Of its five common types, two are categorical in form. Dichotomous or binary data arise when each outcome is one of only two possible categorical responses, and ordinal data when each outcome is one of several ordered categories, or is generated by scoring and summing categorical responses.

Categories without any order are nominal. Ali and Bhaskar describe nominal variables as data merely classified into categories that cannot be arranged in any order, and call the two-category case dichotomous or binary. Some texts reserve "categorical" for unordered variables, while the Cochrane Handbook describes ordinal outcomes as ordered categories; the broader sense is used here.

SubtypeDefining featureHealth economics exampleUsual summary
BinaryTwo categoriesAdmitted to hospital within a year or notRisk ratio, odds ratio, risk difference
NominalThree or more unordered categoriesSetting of care after dischargeProportion in each category
OrdinalThree or more ordered categoriesLevel reported on one EQ-5D dimensionProportional odds ratio, or dichotomised

Two neighbouring types are easily confused with binary data. Events that can happen more than once, such as repeated admissions, are count data, and the Handbook calls treating them as dichotomous a common error. Time-to-event data can be analysed as dichotomous only when every patient's status is known at a fixed time point; otherwise survival analysis with a hazard ratio is the appropriate summary.

Effect measures for a binary outcome

A two-group trial with a binary outcome reduces to a two-by-two table of events and non-events. From that table the Cochrane Handbook derives the risk ratio, the odds ratio and the risk difference, with the number needed to treat obtained from the risk difference.

RR=SE/NESC/NC,OR=SE/FESC/FC,RD=SENE−SCNCRR = \frac{S_E / N_E}{S_C / N_C}, \qquad OR = \frac{S_E / F_E}{S_C / F_C}, \qquad RD = \frac{S_E}{N_E} - \frac{S_C}{N_C}

where SES_E and SCS_C are the numbers with the event in the experimental and comparator groups, FEF_E and FCF_C the numbers without it, and NEN_E and NCN_C the group totals. Risk is the probability of the event, and odds are the probability that it occurs divided by the probability that it does not. The null value is 1 for the two ratios and 0 for the risk difference.

The Handbook records the properties that matter most in practice.

  • Odds and risks diverge when events are common. A risk of 0.5 is an odds of 1 and a risk of 0.95 an odds of 19, so reading an odds ratio as a risk ratio overstates the effect, especially when risks exceed about 20%.
  • The risk ratio has a ceiling. It cannot exceed 1 divided by the comparator group risk, so with a comparator risk of 0.66 it cannot exceed 1.5.
  • Zero cells affect the ratios. Neither ratio can be computed when the comparator group has no events, and it is customary to add 0.5 to each cell, while the risk difference can be computed for any study.
  • The choice of event matters for the risk ratio. Switching events and non-events turns an odds ratio into its reciprocal and reverses the sign of a risk difference, but can change a risk ratio's estimate and significance.

The risk difference is also called the absolute risk reduction, and one minus the risk ratio, as a percentage, is the relative risk reduction. Ratio measures are typically analysed on a logarithmic scale in meta-analysis, and logistic regression models the log odds of a binary outcome when covariates must be adjusted for.

Ordinal scales and the EQ-5D descriptive system

Ordinal outcomes sit between binary and continuous data. The Cochrane Handbook describes a proportional odds model, which assumes one odds ratio holds for every way of splitting the ordered categories into success and failure. Longer ordinal scales are often analysed as continuous, and shorter ones are collapsed into two groups, which the Handbook considers especially appropriate when an established, defensible cut-point exists. It warns that a cut-point chosen to maximise the difference between trial arms can induce bias.

The EQ-5D-5L descriptive system is a familiar ordinal measure in health economics. It has five dimensions, mobility, self-care, usual activities, pain or discomfort and anxiety or depression, each with five levels from no problems to extreme problems, and one level from each dimension defines one of 3,125 health states. The EuroQol user guide states that the level numbers are labels with no arithmetic properties, so state 21111 cannot be assumed better than 13111 and the digits should not be added into a score. A value set converts the profile into a health state utility value, and the choice of value set is itself a methods question. NICE's interim methods statement (PMG51, August 2026) makes the EQ-5D-5L descriptive system and the new UK 5L value set its preferred approach for adults in reference-case analyses, replacing the PMG36 advice (section 4.3.16) to map 5L responses onto the 3L value set, which still applies to topics started before the statement.

The user guide notes that levels are sometimes dichotomised into "no problems" (level 1) and "any problems" (levels 2 to 5). Ordinal measurement as a property of scales is covered under ordinal scaling, and category rating is a valuation method that places states in ordered categories.

Categories as health states and model inputs

A state-transition model is built on categorical data. The ISPOR-SMDM task force report on state-transition modelling says such models rest on mutually exclusive and collectively exhaustive health states, so a modelled individual is in only one state in any cycle. The state occupied in each cycle of a Markov model is therefore a categorical variable, and counts of patients moving between states are the data behind transition probabilities. The NICE manual (PMG36, section 4.7.3) gives how states of health are categorised as an example of structural uncertainty.

Binary trial outcomes enter models as event probabilities. In probabilistic sensitivity analysis the NICE manual (section 4.7.10) asks for distributions that represent the available evidence, not ones chosen arbitrarily, and the ISPOR-SMDM task force on parameter estimation calls beta distributions a natural match for binomial data. Where a chance node has more than two branches, Briggs, Ades and Price argue for the Dirichlet distribution, the multivariate equivalent of the beta, which keeps branch probabilities summing to 1 and, in a Bayesian framework, overcomes zero counts for some transitions.

Worked example with one trial outcome carried into a model

All numbers in this example are illustrative. A trial randomises 200 patients to a new service and 200 to usual care and records hospital admission within 12 months, with 40 admissions under the new service and 60 under usual care.

1. Compute risks and odds. The risks are 40/200 = 0.20 and 60/200 = 0.30. The odds are 40/160 = 0.25 and 60/140 = 0.4286.

2. Compute the three effect measures.

RR=0.200.30=0.667,OR=0.250.4286=0.583,RD=0.20−0.30=−0.10RR = \frac{0.20}{0.30} = 0.667, \qquad OR = \frac{0.25}{0.4286} = 0.583, \qquad RD = 0.20 - 0.30 = -0.10

where the two ratios are unitless and the risk difference is a difference in probability. The number needed to treat is 1 divided by 0.10, or 10 patients per admission avoided, and the relative risk reduction is 33.3%. Read as a risk ratio, the odds ratio would suggest a 41.7% reduction.

3. Apply each measure to the model population. Suppose the model population has a usual-care admission probability of 0.50. A constant risk ratio gives 0.50 × 0.667 = 0.333. A constant odds ratio turns odds of 1 into odds of 0.583, a probability of 0.583/1.583 = 0.368. A constant risk difference gives 0.50 minus 0.10, which is 0.40.

4. Interpret. Per 1,000 patients the model avoids about 167, 132 or 100 admissions depending on which measure is held constant, and at an illustrative GBP 3,000 per admission the savings are about GBP 500,000, GBP 395,000 or GBP 300,000. The trial result is identical in all three cases, so the spread comes from an assumption about which measure transfers to a new baseline risk, and it deserves a scenario analysis.

Dichotomising continuous and ordinal measures

Turning a measured quantity into two categories is common in clinical research and costly in information. Altman and Royston state that dichotomising at the median reduces statistical power by as much as discarding a third of the data, and that choosing an "optimal" cut-point by minimum P value risks a spuriously significant result.

A responder analysis applies the same step to a trial endpoint, classing each patient as a responder or non-responder by a threshold. Snapinn and Jiang contrast it with what they call probably the most common check of comparing the observed effect against a minimal clinically important difference. Under their model with normally distributed outcomes, comparing responder rates needed about 60% more patients than comparing means at the most favourable threshold, and 4,053 against 526 per group at a threshold far from the group means. They recommend basing significance on the most powerful analysis, usually of the continuous variable, and judging clinical relevance from both the mean difference and response rates. A model with responder and non-responder states needs a binary input, and that input inherits the cut-point.

Categorical data compared with nearby ideas

Continuous data, which the Handbook defines as a measurement of a numerical quantity, are summarised by a mean difference or a standardised mean difference instead. Misclassification is the error of assigning an observation to the wrong category, and the kappa statistic measures agreement between raters assigning categories beyond chance. Ali and Bhaskar list the chi-square, Fisher's exact and McNemar's tests for categorical variables, and the chi-square distribution underlies the first.

Limitations and common misreadings

Most errors with categorical data come from treating categories as if they carried more, or less, information than they do. The six below recur in reviews and models.

  1. Reading an odds ratio as a risk ratio. The two diverge when events are common, and the misreading exaggerates the effect.
  2. Doing arithmetic on category codes. EQ-5D level numbers are labels, and only a value set turns a profile into a utility.
  3. Choosing a cut-point after seeing the data. A data-driven threshold inflates the apparent difference between arms.
  4. Dichotomising when the measured value is available. Power falls and information about the size of change is lost.
  5. Treating repeated events as one binary outcome. Patients with several events are counted once and the timing is lost.
  6. Assuming a relative effect transfers unchanged. The measure held constant across populations changes a model's result, as the worked example shows.

Sources

Institutional Perspectives (3)

  • NICE

    EQ-5D-5L Responses Valued With the New UK 5L Value Set

    NICE explains that EQ-5D levels are the multiple-choice options showing the extent of problems on each dimension, and that a value set is a mathematical model converting these questionnaire responses to utility values. Its interim methods statement makes the EQ-5D-5L descriptive system and the new UK 5L value set the preferred approach for adults, and the UK 5L value set should derive all adult utility values in reference-case analyses. This applies to topics starting after 27 August 2026, while ongoing topics continue mapping 5L data to 3L utility values.

    NICE, Interim methods statement: implementing the EQ-5D-5L value set (PMG51), published 27 August 2026, sections 1.5 to 1.7, 1.17 and 1.18View source →
  • NICE Decision Support Unit

    Binomial and Multinomial Likelihoods for Categorical Trial Outcomes

    The DSU's evidence synthesis framework matches the likelihood and link function to the type of data, with a binomial likelihood and logit link as the core model for binary outcomes. For ordered categorical outcomes, such as the proportions reaching ACR-20, ACR-50 and ACR-70, it uses a multinomial likelihood with a probit link, treating the categories as cut-offs on an underlying continuous scale. This assumes the same treatment effect at every cut-off, which should be checked by comparing effects across cut-offs and by the residual deviance.

    NICE DSU Technical Support Document 2: A generalised linear modelling framework for pairwise and network meta-analysis of randomised controlled trials (Dias, Welton, Sutton and Ades, August 2011, last updated September 2016), sections 2, 3 and 3.6View source →
  • EU HTA Coordination Group

    Mantel-Haenszel, Peto and Beta-Binomial Methods for Binary Data

    The HTA Coordination Group's practical guideline names the Mantel-Haenszel method as the standard fixed-effect approach for meta-analysis of binary data. With rare events the Peto method can be applied, but not when treatment effects are large and trial arms are unbalanced, and with many double-zero studies a beta-binomial model can be used. The choice of method must be justified, with account taken of the number of events and of the effect scale, such as the odds ratio, risk ratio or risk difference.

    HTA Coordination Group, Practical Guideline for Quantitative Evidence Synthesis: Direct and Indirect Comparisons, adopted 8 March 2024 under Regulation (EU) 2021/2282, section 4.1.1View source →

Library

Publications

3
  • Journal article

    The cost of dichotomising continuous variables — Altman DG, Royston P, Vol. 332, Article 1080 ed., 2006 (BMJ)

    Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture articles on Categorical Data and Continuous Data, where it is cited as a reference for that concept.

  • Guidance

    ICH E2D(R1) Guideline on post-approval safety data: definitions and standards for management and reporting of individual case safety reports — European Medicines Agency, Committee for Medicinal Products for Human Use, 2024 (European Medicines Agency, Committee for Medicinal Products for Human Use)

    Guidance document listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Case Report, where it is cited as a reference for that concept.

  • Journal article

    Basic statistical tools in research and data analysis — Ali Z, Bhaskar SB, Vol. 60, No. 9, pp. 662-669 ed., 2016 (Indian Journal of Anaesthesia)

    Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture articles on Categorical Data and Discrete Data, where it is cited as a reference for that concept.

Tools & Resources

1
  • Other

    EQ-5D-5L User Guide version 4.1 — EuroQol Research Foundation, Version 4.1 ed., 2026 (EuroQol Research Foundation)

    Source listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Categorical Data, where it is cited as a reference for that concept.

Frequently Asked Questions (6)

  • What is categorical data?

    Categorical data record which of a set of categories each observation falls in, such as alive or dead or an EQ-5D level, instead of a measured amount.

    Source: Higgins et al. 2024

  • What types of categorical data arise in trials and economic evaluations?

    Chapter 6 of the Cochrane Handbook asks review authors to identify the data type of each outcome early, because the available effect measures depend on it. Dichotomous or binary data arise when each outcome is one of only two possible categorical responses, such as dead or alive. Ordinal data arise when each outcome falls in one of several ordered categories, or is generated by scoring and summing categorical responses. Categories with no natural order, such as the setting of care after discharge, are nominal. Events that can happen more than once are count data, and the Handbook calls treating them as dichotomous a common error.

    Source: Higgins et al. 2024

  • Why can an odds ratio and a risk ratio from the same categorical data give different impressions of effect?

    Both ratios come from the same two-by-two table of events and non-events, but risk is the probability of the event while odds are the probability that it occurs divided by the probability that it does not. Chapter 6 of the Cochrane Handbook notes that a risk of 0.5 is an odds of 1 and a risk of 0.95 an odds of 19, so reading an odds ratio as a risk ratio tends to overstate the effect when events are common, with risks above about 20%. Switching events and non-events turns an odds ratio into its reciprocal, but can change a risk ratio's estimate and statistical significance.

    Source: Higgins et al. 2024

  • How does NICE now want categorical data from the EQ-5D-5L converted into utility values?

    The EQ-5D-5L records each of five dimensions at one of five ordered levels, so its responses are ordinal categorical data that need a value set to become a health state utility value. NICE's interim methods statement (PMG51), published on 27 August 2026, makes the EQ-5D-5L descriptive system and the new UK 5L value set its preferred approaches for adults, and the UK 5L value set should be used to derive all adult utility values in reference-case analyses. This replaces the PMG36 advice to map 5L responses onto the 3L value set, given when no suitable UK 5L value set existed. Ongoing topics started before the statement continue to map 5L data to 3L utility values.

    Source: NICE PMG51 2026

  • How is categorical data used in a Markov model?

    The ISPOR-SMDM task force report on state-transition modelling says such models are structured around mutually exclusive and collectively exhaustive health states, so a modelled individual is in only one state in any cycle. The state occupied in each cycle of a Markov model is therefore a categorical variable. Counts of patients moving between states are the data behind the transition probabilities, and binary trial outcomes such as admission or death enter the model as event probabilities. The way states of health are divided into categories is part of the model structure, so a different set of states can change the results.

    Source: Siebert et al. 2012

  • What does a responder analysis lose by turning a continuous endpoint into categorical data?

    A responder analysis classes each patient as a responder or non-responder according to whether a continuous or ordinal endpoint passes a threshold. Snapinn and Jiang found, under a model with normally distributed outcomes, that comparing responder rates needed about 60% more patients than comparing means even at the most favourable threshold, and 4,053 against 526 per group at a threshold far from the group means. They recommend basing statistical significance on the most powerful analysis, usually of the continuous variable, and judging clinical relevance from both the mean difference and response rates. A model with responder and non-responder states inherits whatever cut-point the analysis used.

    Source: Snapinn & Jiang 2007

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 14 Oct 2026

Content version: 1.0.0

Canonical Identity

Term code
HE-ES-SA-250

Stable URI · Machine-readable · Resolvable · CC BY 4.0