HI,
I'm trying to create variable wave (values 1-13) based on whether people were interviewed at each year (0,1). There are 13 variables so AIWWAVE is 1992 data on yes/no interview that year. HOw do I use if then statements correctly?
generate wave = 1 if AIWWAVE==1 else == 0
replace wave = 0 if BIWWAVE== 1 then wave ==2
I'm trying to create variable wave (values 1-13) based on whether people were interviewed at each year (0,1). There are 13 variables so AIWWAVE is 1992 data on yes/no interview that year. HOw do I use if then statements correctly?
generate wave = 1 if AIWWAVE==1 else == 0
replace wave = 0 if BIWWAVE== 1 then wave ==2
Comment