dummymuuttujiksi
Dummy variables, also known as indicator variables or fictitious variables, are quantitative variables that represent qualitative data in regression analysis. They are typically used to represent categorical variables with two or more levels. A dummy variable takes on a value of either 0 or 1 to indicate the absence or presence of a particular category. For example, if we want to include the variable "gender" in a regression model, and the categories are "male" and "female," we can create a dummy variable for "female." This variable would be coded as 1 if the individual is female and 0 if the individual is male.
When a categorical variable has more than two categories, a set of k-1 dummy variables is created
The coefficients of dummy variables in a regression model represent the difference in the dependent variable