Izila
New Member
- Joined
- Aug 27, 2019
- Messages
- 14
- Office Version
- 365
- Platform
- Windows
Hi, I wish to create a dummy variable from one of the variables I am analyzing. I have four types of houses in a survey (1 - 4). Data input in that cell is from 1 to 4, integers. now, i want the excel spreadsheet to assign a 1 in a new dummy variable column that correspond to that number or 0 if it does not. I have illustrated this in a table below. I have over 1000 rows to analyse. please help
house | House Type 1 | House Type2 | House Type3 | House Type4 |
4 | 0 | 0 | 0 | 1 |
3 | 0 | 0 | 1 | 0 |