An regression coefficient could show the effect of capital punishment on the level of violent crime. More than two categories can be handled by using additional dummy variables; for example, to represent three political affiliations (e.g., Republican, Democrat, or Other) in a model to predict election outcomes, one could use two dummy variables ("Republican or not?" and "Democrat or not?"). One needs v-1 dummy variables to represent v variables.