So far, it's always been my understanding that nominal data was a type of categorical data, not a synonym of it. For me, categorical data included ordinal data, not just nominal data.
As of November 2024, Wikipedia says (bold's mine):
Ordinal data is a categorical, statistical data type where the variables have natural, ordered categories and the distances between the categories are not known.
This seems in line with Alan Agresti's An Introduction to Categorical Data Analysis (second edition, 2007). Page 2:
Categorical variables have two main types of measurement scales. [...] Categorical variables having ordered scales are called ordinal variables.
Categorical variables having unordered scales are called nominal variables.
On the other hand, the categorical-data tag on CrossValidated says (bold's mine):
Categorical (also called nominal) data can take on a limited number of possible values called categories. Categorical values "label", they do not "measure". [...]
For analysis, categorical values are considered as abstract entities without any mathematical structure such as an order or a topology, regardless of how they are coded and stored.
The UCLA Statistical Methods and Data Analytics website seems to agree with the CrossValidated definition (bold's mine):
A categorical variable (sometimes called a nominal variable) is one that has two or more categories, but there is no intrinsic ordering to the categories. [...] A purely nominal variable is one that simply allows you to assign categories but you cannot clearly order the categories.
So it looks like there's some discrepancy here. While I'm in general a bit wary of Wikipedia, I have no reason to doubt either of the other resources I'm mentioning, in particular when their definitions don't seem ambiguous.
Is it reflective of some lack of consensus on the definition of "categorical"? In other words, is "categorical" a term allowing some flexible use? Or it it me misinterpreting something or missing some essential piece of information that would reconcile these different references?
I'd be also interested in (preferably academic) references, if any, discussing the definition of "categorical" and possibly the issue of varying definitions.
The reason I'm asking this question is certainly not to nitpick, but to avoid possible misunderstandings when reading or discussing this subject with other people.