Page 1 of 1

smpl

Posted: Tue May 02, 2023 11:38 pm
by tvonbrasch
I (mistakenly) thought that

Code: Select all

smpl yyyy yyyy+4
would be equivalent to:

Code: Select all

smpl yyyy yyyy:1+5
but, it is not, see pictures below. what is it that the command

Code: Select all

smpl yyyy yyyy+5
actually does?
t
2023-05-03 08_31_57-EViews.png
2023-05-03 08_31_57-EViews.png (5.57 KiB) Viewed 12656 times
2023-05-03 08_32_13-EViews.png
2023-05-03 08_32_13-EViews.png (5.37 KiB) Viewed 12656 times

Re: smpl

Posted: Wed May 03, 2023 11:33 am
by EViews Matt
Hello,

In a smpl statement, e.g. "smpl <start> <end>", the <start> specification uses the first observation within that specification while the <end> specification uses the last observation within that specification (this is only an issue when the specification as at a lower frequency than the workfile). Consequently, in a quarterly workfile the statement

Code: Select all

smpl yyyy yyyy+5
is interpreted as

Code: Select all

smpl yyyy:1 yyyy:4+5 ' not yyyy:1+5

Re: smpl

Posted: Wed May 03, 2023 11:24 pm
by tvonbrasch
great, thanks!