Types of Data and Measurement Scale
Data type and measurement scale: ask what comparisons survive
A categorical variable records group membership. Nominal categories have no inherent order, whereas ordinal categories have an order but not necessarily equal spacing. A quantitative variable records a numerical amount; it may be discrete when it counts separated values or continuous when it can in principle vary over an interval within measurement precision.
Measurement scales answer what comparisons have stable meaning. Nominal scales support equality and counts. Ordinal scales support ordering but not a defensible claim that adjacent category gaps are equal.
Interval scales have meaningful differences but an arbitrary zero, so ratios are not generally meaningful. Ratio scales have a meaningful zero representing absence of the measured quantity, so differences and ratios can be interpreted with the variable's unit.
The same numeral can represent different kinds of information. A coded product identifier is nominal even if it contains digits; a conventional calendar-year scale is interval; mass in grams has a ratio scale. The variable definition, not the software storage type, controls the classification and the summaries that make sense.
Daily outdoor temperature is recorded in degrees Celsius. Which scale description is most appropriate?
A registrar records the number of courses a student completed during a term. What is the best classification?