Help with Dummy Variables

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

Mej12
Posts: 3
Joined: Fri Apr 21, 2017 11:56 am

Help with Dummy Variables

Postby Mej12 » Sat Apr 22, 2017 10:56 am

Hi,

I have a dummy variable and i only want to include the observations that are '0' and leave out the '1' observations. I sorted the variable so that all the 0s will come first. I then tried to change the number of observations so that it will only include the '0's, but this came up with an error. Could someone please help with this? How can I ensure I'm only including the '0' observations in my model?

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Help with Dummy Variables

Postby startz » Sat Apr 22, 2017 11:11 am

smpl if dummy=0

Mej12
Posts: 3
Joined: Fri Apr 21, 2017 11:56 am

Re: Help with Dummy Variables

Postby Mej12 » Sat Apr 22, 2017 11:57 am

startz wrote:smpl if dummy=0

Hi, thank you for replying. I'm not too sure what you mean. Could you clarify your earlier comment?

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Help with Dummy Variables

Postby startz » Sat Apr 22, 2017 2:24 pm

Mej12 wrote:
startz wrote:smpl if dummy=0

Hi, thank you for replying. I'm not too sure what you mean. Could you clarify your earlier comment?

Type in that command and only observations where variable equals zero will be included.

Mej12
Posts: 3
Joined: Fri Apr 21, 2017 11:56 am

Re: Help with Dummy Variables

Postby Mej12 » Tue Apr 25, 2017 8:31 am

startz wrote:
Mej12 wrote:
startz wrote:smpl if dummy=0

Hi, thank you for replying. I'm not too sure what you mean. Could you clarify your earlier comment?

Type in that command and only observations where variable equals zero will be included.


Thank you for your help, startz :)


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 27 guests