excluding all observations where the dummy is 0

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

Machiavelli
Posts: 4
Joined: Mon Nov 30, 2009 10:20 am

excluding all observations where the dummy is 0

Postby Machiavelli » Sun Jan 03, 2010 2:49 am

Hello,

I have a model with a qualitative dummy variable, and I simply want to run a regression including only all observations where the dummy is 1, excluding all where it is 0, since running a regression with all observations did not make me much wiser.

Thanks,
Chris

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13602
Joined: Tue Sep 16, 2008 5:38 pm

Re: excluding all observations where the dummy is 0

Postby EViews Gareth » Sun Jan 03, 2010 12:10 pm

Set the estimation sample to be:

Code: Select all

if dum=1
where dum is the name of your dummy


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest