Hi,
I would like to ask if there is any command to run separate regressions based on a categorical variable.
For example, I have a categorical variable GENDER with 1 = male and 0 = female.
I would like to generate a regression only with male data and a separate one only with female data.
Is there a command to do this directly using the same dataset or do I have to manually separate them into two files and run them separately?
Thank you for your clarification.
Separate regression based on categorical variable
Moderators: EViews Gareth, EViews Moderator
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Separate regression based on categorical variable
smpl if gender=1
ls whatever
smpl if gender=0
ls whatever
ls whatever
smpl if gender=0
ls whatever
Re: Separate regression based on categorical variable
Hi startz,
Thanks for the info. It is running well now :D
Thanks for the info. It is running well now :D
Who is online
Users browsing this forum: No registered users and 2 guests
