Page 1 of 1

smpl logic

Posted: Wed Oct 01, 2008 5:28 am
by startz
In the commands

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

s2 has no effect. Is that right?

Posted: Wed Oct 01, 2008 8:08 am
by EViews Gareth
Correct. You can not use two sample objects at the same time.

Re: smpl logic

Posted: Tue Oct 07, 2008 8:39 am
by EViews Gareth
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

Re: smpl logic

Posted: Tue Oct 07, 2008 1:41 pm
by startz
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.