Hi Guys,
I want to get the first observation of a alpha series(alpha1) each time another two series's value changes (alpha2 and series3).
I know we have @fistsby for numeric series, is there any formula (or formula communication) that I could do something like:
alpha alpha1_new=@firstsby(alpha1, alpha2, series3)?
Please advise!
Best,
BC
SIMILAR FORMULA OF @FIRSTSBY() FOR ALPHA SERIES?
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- EViews Developer
- Posts: 563
- Joined: Thu Apr 25, 2013 7:48 pm
Re: SIMILAR FORMULA OF @FIRSTSBY() FOR ALPHA SERIES?
Hello,
I believe you'll have to use an explicit loop, e.g.:
I believe you'll have to use an explicit loop, e.g.:
Code: Select all
series tmp = @firstsby(@obsnum, alpha2, series3)
alpha alpha1_new
for !i = 1 to @obsrange
alpha1_new(!i) = alpha1(tmp(!i))
next
delete tmp
Re: SIMILAR FORMULA OF @FIRSTSBY() FOR ALPHA SERIES?
Thank you Matt.
Hope there will be an @firstby() for alpha series soon.
Best,
BC
Hope there will be an @firstby() for alpha series soon.
Best,
BC
Who is online
Users browsing this forum: No registered users and 23 guests