year unique_id psu_no hh_no zila zila_name
2019 11005105 1005 105 1
2020 11008141 1008 141 1
2015 11005026 1005 26 1
2018 11010044 1010 44 1
2021 11004042 1004 42 1 Bagerhat
2018 11010106 1010 106 1
2015 11012102 1012 102 1
2017 11015109 1015 109 1
2020 11002154 1002 154 1
2019 11015144 1015 144 1
2020 11020008 1020 8 1
2021 11005121 1005 121 1 Bagerhat
In my data set, only the 2021 year has a district name which is a string variable. Other years only have "numerical categories" representing particular districts. For example in 2020 "1" represents "Bagerhat" district. Now I want to generate "Bagerhat" if zila==1 and so on. I just share a small portion of my data. Please help me to solve it. Thank you.
#I tried to use dataex command but it gives this error message.
dataex in 1/5
input statement exceeds linesize limit. Try specifying fewer variables
2019 11005105 1005 105 1
2020 11008141 1008 141 1
2015 11005026 1005 26 1
2018 11010044 1010 44 1
2021 11004042 1004 42 1 Bagerhat
2018 11010106 1010 106 1
2015 11012102 1012 102 1
2017 11015109 1015 109 1
2020 11002154 1002 154 1
2019 11015144 1015 144 1
2020 11020008 1020 8 1
2021 11005121 1005 121 1 Bagerhat
In my data set, only the 2021 year has a district name which is a string variable. Other years only have "numerical categories" representing particular districts. For example in 2020 "1" represents "Bagerhat" district. Now I want to generate "Bagerhat" if zila==1 and so on. I just share a small portion of my data. Please help me to solve it. Thank you.
#I tried to use dataex command but it gives this error message.
dataex in 1/5
input statement exceeds linesize limit. Try specifying fewer variables
Comment