Anyone with basic stata knowledge should be able to quickly help
I am using stata with following input:?use http://fmwww.bc.edu/ec-p/data/wooldridge/meap00_01, clear?
I am trying to run a regression for cigs, income, and restaurn variables. The part I need help with is creating two unique variables (or lists) for restaurn. Specifically I need var0 = if(restaurn==0) and var1 = if(restaurn==1). I can’t figure out the syntax. Once I create these variables/lists, I will run:
regress cigs income var0 var1 ?
Thank you!