Uncategorized
Creating Dummy Variables In R For Categorical Variables
Dummy or treatment coding basically consists of creating dichotomous variables where each level of the categorical variable is contrasted to a specified reference level. Contrasts salaries sex male female 0 male 1. Creating Dummy Variables For Categorical Data In R Programming Each row would ge…