2  Levels of Measurement and Choosing the Right Test

NoteWhat you’ll be able to do

By the end of this chapter you will be able to:

  1. Classify any variable as nominal, ordinal, interval, or ratio (NOIR).
  2. Translate between the four-level scheme and the simpler categorical-vs-continuous frame.
  3. Use the test-selection table to identify the right test from your variable types.
  4. Explain why Likert items sit on the ordinal/interval boundary and what that means for analysis.

The first practical question in any analysis is: what kind of data do you have? The answer narrows your test choices dramatically. Use a test built for continuous outcomes on a four-category rating, and it will mislead you. Use a test built for categories on continuous measurements, and it will throw information away.

This chapter walks through the four classical levels of measurement and then gives you a decision tree for picking a test.

2.1 The four levels of measurement

Stanley Stevens introduced the four-level scheme — nominal, ordinal, interval, ratio — in 1946. It is a useful organizing idea, though not the only one — modern texts often use the simpler split between categorical and continuous. This book uses both. Learn the four-level scheme anyway: it appears in nearly every methods section you will read.

A handy mnemonic: the four levels in order spell NOIR (Nominal, Ordinal, Interval, Ratio) — and the order matters, running from least informative to most.

2.1.1 Nominal scale

Nominal variables sort observations into named categories with no inherent order.

Examples

  • Gender (Male, Female, Non-binary)
  • Type of cuisine (Italian, Chinese, Mexican)
  • Favorite color (Red, Blue, Green)
  • Political affiliation (Party A, Party B, Party C)
  • Marital status (Single, Married, Divorced, Widowed)

What you can do with them

Method Purpose
Chi-square test of independence Test whether two nominal variables are associated (e.g., cuisine preference by gender)
Fisher’s exact test Same purpose, used when sample sizes are small
Mode Identify the most common category

You cannot meaningfully compute a mean of a nominal variable. The mean of (Italian, Chinese, Mexican) is not a quantity.

2.1.2 Ordinal scale

Ordinal variables have categories that fall in a meaningful order, but the spacing between categories is not guaranteed to be equal.

Examples

  • Likert scale responses (Strongly Disagree → Strongly Agree)
  • Education levels (High School, Bachelor’s, Master’s, Doctorate)
  • Customer satisfaction (Very Dissatisfied → Very Satisfied)
  • Race finishing positions (1st, 2nd, 3rd, …)
  • Military ranks (Private, Corporal, Sergeant, …)

What you can do with them

Method Purpose
Mann-Whitney U test Compare two independent groups on a ranked outcome
Wilcoxon signed-rank test Compare two paired/matched conditions on ranks, or one sample against a set number
Kruskal-Wallis test Extend the ranked comparison to three or more groups
Spearman’s rank correlation Examine the relationship between two ordinal variables

2.1.3 Interval scale

Interval variables have ordered values with equal spacing between consecutive levels, but the zero point is arbitrary — it does not mean “none.”

Examples

  • Temperature in Celsius or Fahrenheit (20°C → 25°C is the same interval as 25°C → 30°C, but 0°C is not the absence of temperature)
  • IQ scores (the difference between 100 and 110 is the same as between 110 and 120, but IQ = 0 is not the absence of intelligence)
  • Calendar years (2010 → 2015 is the same five-year span as 2015 → 2020, but year 0 doesn’t mean the absence of time)

Because spacing is constant, differences are meaningful — but ratios are not. You can say “today is 5°C warmer than yesterday.” You cannot meaningfully say “today is twice as warm as yesterday.”

2.1.4 Ratio scale

Ratio variables have all the properties of interval variables, plus a true zero that means “none of the thing.” This makes ratios meaningful.

Examples

  • Height (0 inches means no height; 60 inches is twice 30 inches)
  • Weight (0 lbs is no weight)
  • Age (0 years is at birth)
  • Reaction time (0 ms is no delay)
  • Distance (0 m is no displacement)

What you can do with interval or ratio data

Method Purpose
One-sample t-test Compare a sample mean to a known value
Independent or paired t-test Compare means of two groups or conditions
One-way / two-way / repeated-measures ANOVA Compare means across three or more groups or conditions
Pearson correlation Measure the strength and direction of a linear relationship
Linear regression Predict one continuous variable from others

The practical distinction between interval and ratio rarely matters for test selection — both are “continuous” for the purposes of choosing a t-test, ANOVA, or regression. It matters when you want to make a ratio claim (“twice as much”).

WarningA subtlety about Likert scales

Likert items sit on the boundary between ordinal and interval. In practice, researchers very often treat Likert-scale items (1–5 or 1–7) as if they were interval. Mathematically this is questionable. But it is widely accepted in psychology, and with enough scale points it tends to give similar conclusions to ordinal methods. For small surveys with only three or four response options, prefer ordinal methods. For longer scales (or sums of many items), interval-style analysis is the conventional choice.

NoteCheck yourself

Before moving on, classify each variable as nominal, ordinal, interval, or ratio:

  1. Number of siblings
  2. Letter grade (A, B, C, D, F)
  3. Eye color
  4. Temperature in °F
  5. Reaction time in milliseconds
  1. Ratio (0 siblings means none; 4 really is twice 2). 2. Ordinal (ordered, but the A–B gap need not equal the B–C gap). 3. Nominal. 4. Interval (0°F is not “no temperature”). 5. Ratio (0 ms means no delay).

2.2 The simpler frame: categorical vs. continuous

For day-to-day work, most decisions reduce to two questions:

  1. Is each variable categorical (groups) or continuous (measurable)?
  2. If categorical, how many levels does it have (2 or 3+)?

Table 2.1 condenses the test-selection logic into a single table. Memorizing the four levels of measurement is helpful for reading literature; memorizing this table is what gets you through homework.

Table 2.1: The most common test-selection decisions, organized by variable type.
If your variables are… Example Test to use
One continuous, one dichotomous (paired data) Pre vs. post score for the same students Paired-samples t-test
One continuous, one dichotomous (independent groups) Test scores in two teaching methods Independent-samples t-test
One continuous (compared to a known value) Class mean vs. national average One-sample t-test
One continuous, one categorical (3+ groups) Test scores by class year One-way ANOVA
One continuous, two categorical Test scores by class year and gender Two-way ANOVA
Two continuous Hours studied vs. exam scores Pearson correlation or simple regression
One continuous outcome, multiple predictors Score predicted by study hours and sleep Multiple regression
Two categorical Major × favorite snack Chi-square test of independence
One categorical Are equal numbers of students in each major? Chi-square goodness of fit

Flowchart. Root box: 'What are your variable types?' splits into two branches. Left branch, 'One continuous outcome,' leads to a box asking about the comparison or predictor, which fans out to seven leaf boxes: one-sample t-test, paired t-test, independent t-test, one-way ANOVA, two-way ANOVA, correlation or simple regression, and multiple regression. Right branch, 'Categorical variable(s) only,' leads to a box asking how many categorical variables, fanning out to two leaf boxes: chi-square goodness-of-fit and chi-square test of independence.

A decision tree for choosing a test, starting from the same question Table 2.1 answers: what are your variable types? The left branch (one continuous outcome) splits further by what it’s being compared to; the right branch (categorical variables only) splits by how many. This is a simplified path through the table above — assumption checks (normality, equal variance, covered in Chapter 10 and Chapter 11) can still redirect you to a non-parametric alternative.

2.3 A more complete reference table

Table 2.2 is a fuller list, including the non-parametric alternatives that show up when normality assumptions fail (covered in detail in Chapter 13).

Table 2.2: The fuller test-selection table, including nonparametric alternatives and R syntax.
Variable types Test name When to use R function
Dichotomous + continuous Independent-samples t-test Compare means of two independent groups t.test(group1, group2)
Paired-samples t-test Compare means of the same group at two times t.test(post, pre, paired = TRUE)
One-sample t-test Compare a sample mean to a known value t.test(sample, mu = value)
Categorical (3+ groups) + continuous One-way ANOVA Compare means across 3+ independent groups aov(y ~ group)
Two-way ANOVA Effects of 2 factors on a continuous DV aov(y ~ A * B)
Repeated-measures ANOVA Compare conditions within subjects afex::aov_ez(...)
Tukey HSD post-hoc Find which specific groups differ TukeyHSD(model)
Continuous + continuous Pearson correlation Linear relationship between two continuous variables cor.test(x, y)
Spearman correlation Monotonic (ranked) relationship cor.test(x, y, method = "spearman")
Continuous DV + 1+ continuous IVs Simple linear regression Predict a continuous DV from one IV lm(y ~ x)
Multiple regression Predict from multiple IVs lm(y ~ x1 + x2 + ...)
Categorical (2 variables) Chi-square independence Test association between two categorical variables chisq.test(table)
Categorical (1 variable) Chi-square goodness of fit Test whether observed frequencies match expected chisq.test(x, p = expected)
Dichotomous DV Logistic regression Predict a binary outcome glm(y ~ x, family = binomial)
Ordinal / ranked Wilcoxon rank-sum (Mann-Whitney) Two independent groups, nonparametric wilcox.test(g1, g2)
Wilcoxon signed-rank Paired or one sample, nonparametric wilcox.test(post, pre, paired = TRUE); one sample: wilcox.test(x, mu = value)
Kruskal-Wallis 3+ groups, nonparametric kruskal.test(y ~ group)
Friedman Repeated measures, nonparametric friedman.test(y ~ cond \| subj)

2.4 A note on assumptions

The level of measurement narrows your test choice; assumptions narrow it further. A t-test requires interval/ratio data and roughly normal distributions. Unequal variances are handled by Welch’s t-test, R’s default. Clear non-normality in a small sample can send you to a nonparametric test even though your data are continuous. We will come back to that decision in Chapter 10.

TipQuick-reference card

When in doubt, ask three questions in order:

  1. Is my outcome continuous or categorical?
  2. How many groups (or predictors) does my predictor side have?
  3. Are observations independent, or paired/repeated?

The combination of those three answers will usually identify the test within one or two candidates.


TipChapter Summary

Core idea: The type of variable you have narrows the set of tests available; your research question and design — paired or independent, how many groups — decide among what’s left. Using a test that doesn’t fit your measurement level is one of the most common errors in behavioral research.

You should understand:

  • The four levels of measurement (nominal, ordinal, interval, ratio) and how they differ
  • Why the distinction between ordinal and interval matters for choosing parametric vs. non-parametric tests
  • How to read the test-selection table and narrow down options based on your variable types

You’ll check and convert variable types in R (str(), as.factor()) in Chapter 7.

Plain-language check: Without looking at the table, can you say which test you would use if you have one continuous outcome and one grouping variable with two independent groups?

The one mistake to avoid: Treating Likert-scale items (1–5 ratings) as interval-level data without acknowledging the assumption. The field commonly does this, but it is an assumption — not a fact.

Practice: A researcher measures “education level” as (1) high school, (2) some college, (3) bachelor’s, (4) graduate degree. What level of measurement is this, and what does that imply for analysis choices?

Key terms from this chapter are defined in the Glossary.