I have a dataset with answers form 2004 and 2016 in the same variable, but I want to separate the answers by year without missing values in my two new variables
… Read more
Dataset
… Read more
Dataset
gender year
1 1
2 1
1 2
2 2
gender year gender1 gender2
1 1 1 .
2 1 2 .
1 2 . 1
2 2 . 2
recode gender1 gender2 (.=0)
CURRENT VARIABLE | NEW VARIABLE 2004 | NEW VARIABLE 2016 | ||||
2004 | MALE | 2004 | MALE | 2016 | FEMALE | |
2004 | MALE | 2004 | FEMALE | 2016 | FEMALE | |
2004 | FEMALE | 2004 | FEMALE | 2016 | MALE | |
2004 | MALE | 2004 | MALE | 2016 | MALE | |
2016 | MALE | 2004 | MALE | 2016 | MALE | |
2016 | FEMALE | 2004 | MALE | 2016 | MALE | |
2016 | MALE | 2004 | MALE | 2016 | FEMALE |
Comment