I have NIS combined from 2016 to 2020, and the year variables exist; however, I am unable to trend my data by the year prior to 2020. It seems as if the previous years are missing with the YEAR variable. I created a variable by using
generate YEART=.
replace YEART =0 if YEAR==.
replace YEART =1 if YEAR==2016
replace YEART =2 if YEAR==2017
replace YEART =3 if YEAR==2018
replace YEART =4 if YEAR==2019
replace YEART =5 if YEAR==2020
then I tried to trend using the tabulate command with the associated disease variable. However I only see one value in my results
generate YEART=.
replace YEART =0 if YEAR==.
replace YEART =1 if YEAR==2016
replace YEART =2 if YEAR==2017
replace YEART =3 if YEAR==2018
replace YEART =4 if YEAR==2019
replace YEART =5 if YEAR==2020
then I tried to trend using the tabulate command with the associated disease variable. However I only see one value in my results
Comment