Dear all,
I am using Stata 16, on mac. Here is a snapshot of my dataset which consists of population and GDP for all 50 states over a the period of three years 2016-2018. I want to create a dummy variable called WestCoast = 1 if the State is California, Oregon, or Washington and 0 if otherwise but I do not know how to do so.

Thank you in advance for your help
Jason Browen
I am using Stata 16, on mac. Here is a snapshot of my dataset which consists of population and GDP for all 50 states over a the period of three years 2016-2018. I want to create a dummy variable called WestCoast = 1 if the State is California, Oregon, or Washington and 0 if otherwise but I do not know how to do so.
Thank you in advance for your help
Jason Browen
Comment