13 Research methods, statistics, critical review and evidence-based practice13.8 Descriptive statistics

13.8.2 Types of data

3 min read

Written by Resident Doctor Committee · Published

Try it

Which statistical test?

Interactive

What kind of outcome are you comparing?

Four questions decide almost every one of these: what kind of outcome, how many groups, are the observations paired, and is the distribution reasonable.

Run the tree for PANSS total at 12 weeks in two independent groups. Run it again with the outcome graded mild, moderate or severe. Only the data type has changed, yet the test changes with it.

Variables in a study

A variable is a characteristic recorded for each patient or other unit, such as diagnosis, age or symptom score.

Variable

Definition

Independent

The factor the researcher manipulates or assigns: the exposure or intervention

Dependent

The outcome measured to see whether it varies with the independent variable

Controlled

A factor held steady

A dependent variable may respond to the independent variable, but it is not guaranteed to.

Levels of measurement

Three questions, asked in turn, place a variable: are the categories ordered, are the steps equal, and is there a true zero?

Level

Ordered

Equal steps

True zero

Example

Nominal

No

No

No

Drug name, ethnic group

Ordinal

Yes

No

No

Social class

Interval

Yes

Yes

No

Celsius temperature

Ratio

Yes

Yes

Yes

Drug concentration

Numeric codes may label categories without ordering them, so coding ethnic group as 1, 2 and 3 leaves it nominal.

Nominal and binary data

  • Nominal data are named categories with no inherent order. They allow classification only, whatever labels or codes record them.

  • Binary (dichotomous) data fall into exactly two categories, such as relapsed or not. Binary is the more exact term for a two-category nominal variable.

  • Some variables are naturally binary, but others apply a threshold to a finer measure, such as a 50% symptom reduction defining response. Applying a threshold loses information.

  • Relative risk and odds ratio can only be calculated from a binary outcome, because each participant must be counted as having or not having the event.

Ordinal data

  • Ordinal data are ranked categories with unequal or unknown gaps between them, such as social class or the seven grades of the Clinical Global Impression severity scale (CGI-S).

  • Ordinal data remain ordinal when they are coded with numbers or entered into a regression. They suit medians and non-parametric tests better than means.

  • A Likert-type item is ordinal, because its points are ranked but the spacing between adjacent points is not known to be equal.

Interval and ratio data

  • Interval data have equal steps but an arbitrary zero, so differences are meaningful but ratios are not: 40 degrees Celsius is not twice as hot as 20.

  • Ratio data have equal steps and a true zero that means none of the quantity, so a drug concentration of 1.0 mmol/L is twice 0.5 mmol/L.

  • A summed rating-scale score at interval level supports means, standard deviations and either parametric or non-parametric tests, but it cannot carry ratio statements. Ordinal scores allow medians only.

Discrete and continuous data

This distinction is separate from the four levels.

  • Discrete data are numerical data restricted to separate values, typically counts, with nothing possible in between: attendances cannot be 2.4.

  • A count has a true zero, so it is discrete ratio data.

  • Continuous data are measured and can take any value within a range, limited only by measurement precision, such as weight or age.

  • Continuous data have equal, measurable intervals, whereas the steps of an ordinal rating scale have no known size.

Data type and analysis

Data type

Summary

Typical tests

Nominal

Counts, proportions, mode

Chi-square, Fisher's exact

Binary

Proportion, risk, odds

Chi-square, Fisher's exact, logistic regression

Ordinal

Median, percentiles

Rank-based (non-parametric) tests

Continuous

Mean and standard deviation, or median and interquartile range if skewed

t-test, analysis of variance, correlation, regression, or non-parametric equivalents