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.
Array
Thank you in advance for your help
Jason Browen
Related Posts with Help Generating Dummy Variable WestCoast
How exactly does Stata calculate derivatives via the margins command for nonlinear functions?I would like to be able to manually reproduce the results that Stata provides from the margins comma…
Change date abbreviation in multible observationsHey, I have dates according to the following dataset: Code: * Example generated by -dataex-. To …
Marginal effects graph blank after using fixed effectsHi all, When trying to produce a marginal effects graph using fixed effects, the output is blank. …
Example of Difference in Difference approach with binary or multinomial choice modelHi,dear all: I am facing a problem that emprically dealing with descrete choice model with differen…
How Can I Assign Specific Values to a Subsample According to a Percentage Distribution?Hello everyone! I am new in this forum and looking forward to the discussions on Stata! I am curren…
Subscribe to:
Post Comments (Atom)
0 Response to Help Generating Dummy Variable WestCoast
Post a Comment