Question: 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

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!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!