Ordinal categorical variable (source code)

= Ordinal categorical variable

An ordinal categorical variable has categories with a meaningful order. Replacing its levels by numerical scores imposes a quantitative spacing and can replace several unrelated level effects by one <regression coefficient> when a linear trend is scientifically reasonable.