Hostname: page-component-89b8bd64d-46n74 Total loading time: 0 Render date: 2026-05-07T12:10:32.336Z Has data issue: false hasContentIssue false

A short overview of variable types and how to choose them

Published online by Cambridge University Press:  30 June 2025

Anikó Lovik*
Affiliation:
An assistant professor in the Methodology and Statistics Unit at Leiden University in The Netherlands and is also affiliated to the Unit of Integrative Epidemiology of Karolinska Institute, Stockholm, Sweden. She obtained her PhD in biostatistics from KU Leuven, Belgium.
*
Correspondence Anikó Lovik. Email: a.lovik@fsw.leidenuniv.nl
Rights & Permissions [Opens in a new window]

Summary

This article provides a brief introduction (or recapitulation) of what variable types are and how the choice of the variable type may affect which research questions can be answered and the data analysis. The nine-item Patient Health Questionnaire and a simulated data-set are used as an illustration throughout.

Information

Type
Research Methods
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - NCCreative Common License - ND
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NonCommercial-NoDerivatives licence (https://creativecommons.org/licenses/by-nc-nd/4.0/), which permits non-commercial re-use, distribution, and reproduction in any medium, provided that no alterations are made and the original article is properly cited. The written permission of Cambridge University Press must be obtained prior to any commercial use and/or adaptation of the article.
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of Royal College of Psychiatrists
Figure 0

FIG 1 Simulated data example of the nine-item Patient Health Questionnaire (PHQ-9) total score presented as a binary, ordinal or discrete numeric variable. Clin. rel., clinically relevant; IQR, interquartile range; ND, not determined; BMI, body mass index; ANOVA, analysis of variance; ANCOVA, analysis of covariance.

Submit a response

eLetters

No eLetters have been published for this article.