smpl logic

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

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

smpl logic

Postby startz » Wed Oct 01, 2008 5:28 am

In the commands

sample s1 if x>1
sample s2 if x>4
smpl s1 and s2

s2 has no effect. Is that right?

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

Postby EViews Gareth » Wed Oct 01, 2008 8:08 am

Correct. You can not use two sample objects at the same time.

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

Re: smpl logic

Postby EViews Gareth » Tue Oct 07, 2008 8:39 am

Actually I take that back, you can do this:

Code: Select all

sample s1 if x>1
sample s2 if x2>4
smpl if s1 and s2
Follow us on Twitter @IHSEViews

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

Re: smpl logic

Postby startz » Tue Oct 07, 2008 1:41 pm

QMS Gareth wrote:Actually I take that back, you can do this:

Code: Select all

sample s1 if x>1
sample s2 if x2>4
smpl if s1 and s2

Okay, that's consistent with how smpls operate, although in the example omitting the if there should be an error message or something.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 21 guests