Indicator variable (source code)

= Indicator variable
{title2=$\mathbf 1_A$}
{wiki}

An indicator variable of an event $A$ is one on $A$ and zero outside $A$. Indicator columns encode categorical levels in a <design matrix>.