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.
Dummy variables: Generate separate equation
Moderators: EViews Gareth, EViews Moderator
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3796
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Dummy variables: Generate separate equation
If the variable is called MEN, then
smpl if men
ls
smpl if not men
ls
smpl if men
ls
smpl if not men
ls
Re: Dummy variables: Generate separate equation
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!
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!
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3796
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Dummy variables: Generate separate equation
Use
Code: Select all
smpl if male
Re: Dummy variables: Generate separate equation
Yup got it. Thanks!!
Return to “Econometric Discussions”
Who is online
Users browsing this forum: No registered users and 1 guest
