Skip to content

Glossary: Regression

C()

Also written: C(col), Treatment(reference=...)

A formula wrapper that marks a column as categorical, so each value gets its own dummy even if it is a number like month. With `Treatment(reference="Mon")` it also lets you pick the reference level.

Where the book teaches it

Related terms

Dummy variableReference levelTreatment coding