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
Extracting a specific part of a string if the string contains an exact syntaxOK, so I'm not explaining this very well but here is what I want to do. I have data as shown below. …
How to solve autocorrelation and hetero ?I using xtserial and xttest3 What should I do to deal with autocorrelation and hetero ? My data have…
Proportional odd assumption for ordered logit regression in panel dataRespected sir, I am using xtologit command for ordered logit regression for panel data. My dependent…
Simple loop questionDear Listers, I would like to ask you a very simple question regarding loop. I want to make a vari…
a new variable based on two existing variablesHi, I'm using SHARE dataset where there is a dummy variable for people having played chess/cards in…
Subscribe to:
Post Comments (Atom)
0 Response to Help Generating Dummy Variable WestCoast
Post a Comment