When setting sample is there a way to have the sample start when the series starts?
For instance, instead of writing "smpl 1989Q2 2016Q3" after having checked the series start date, I would like to write a code that checks the series start date itself.
Please let me know if I'm not clear.
Thanks for your help.
Trainee
first value
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: first value
In one line:
Personally I would probably do something like this though:
which is a bit easier to read.
Note neither will be dynamic - the sample will not automatically adjust if the series start date changes.
Code: Select all
smpl @first 2016q3 if @date >= @dateval(X.@first)
Code: Select all
%first = x.@first
smpl {%first} 2016q3
Note neither will be dynamic - the sample will not automatically adjust if the series start date changes.
Who is online
Users browsing this forum: No registered users and 2 guests
