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
graph with mean along 90% confidence interval?Dear All, I have the following data Code: * Example generated by -dataex-. To install: ssc install …
OLS and GMM regression on insurance dataI have some insurance data and I want to make a) an OLS regression and b) an GMM regression on th…
Interaction term of a global variable list with a factor variableHi, I am using Stata 14.0 and trying to obtain full interaction of my variable list with a factor va…
Behavior of tempvar within ML programSuppose I know the mean of a normal variable and I want to estimate its standard deviation using MLE…
Extract p-value of independent variable ologitHello, I am trying to extract the p-value of an independent variable after an ologit. It seems like…
Subscribe to:
Post Comments (Atom)
0 Response to Help Generating Dummy Variable WestCoast
Post a Comment