"Dummy" Variables

In the example above, we create two dummy variables for "married" and "divorced." Both variables equal 1 when the respondent meets the condition and 0 when they do not

1 meets the condition!

Dummy variables, also known as indicator variables or binary variables, are a type of qualitative variable used in statistics and data science to represent categorical data with two distinct categories. They are often represented as 0s and 1s, where 0 represents the absence of a characteristic or category, and 1 represents its presence.Â