Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started