Page 1 of 1

Dummy variables: Generate separate equation

Posted: Sat Apr 12, 2014 3:45 pm
by hana88
Hi All,

My question involves how to generate separate equations for men and women (men=1, women=0)
First, I have been given a standard regression equation of interests which looks like this:
sleep = B0 + B1*totwrk + B2*educ + B3*age + B4*age^2 + B5*yngkid + u


And then I am asked to generate separate equation for men and women. I am just wondering how do you get this in Eviews? Can someone help me with this?

Thanks.

Re: Dummy variables: Generate separate equation

Posted: Sat Apr 12, 2014 4:07 pm
by startz
If the variable is called MEN, then
smpl if men
ls
smpl if not men
ls

Re: Dummy variables: Generate separate equation

Posted: Sat Apr 12, 2014 4:10 pm
by hana88
Hi startz thanks for the response.

Forgot to mention that I've been given male series which has 1s and 0s in it.

Does this mean that I have to create another variable like men etc?

Thanks again!

Re: Dummy variables: Generate separate equation

Posted: Sat Apr 12, 2014 4:12 pm
by startz
Use

Code: Select all

smpl if male

Re: Dummy variables: Generate separate equation

Posted: Sat Apr 12, 2014 4:14 pm
by hana88
Yup got it. Thanks!!