I would like to calculate a statistic for a series y, containing T observations and the statistics, say, following r1=T*t*(yT)*sum(yt-ybar)*(y1)
where (yT) represents the last observation of the series, (y1) is the first observation, ybar is the mean of the series and t represents for the time of each y.
So T=@obs(y), y1=@first(y), yT=@last(y), ybar=@mean(y)
sum(yt-ybar)=@sum(y-@mean(y))
but how to represent t in the formula?
I only knew some of VBA so still not familiar with Eviews programming.
Many many thanks!
Just start Eviews programming, a simple Q
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: Just start Eviews programming, a simple Q
I don't understand your question. Or, rather, as far as I can tell, you've answered it yourself.
Re: Just start Eviews programming, a simple Q
My question is how to represent 't' in the formula?
For example, i need to know the result of the series t*yt
so when yt=y1, it is y1*1, and when yt=y2, it is y2*2
How can i programme that t?
Thanks!
For example, i need to know the result of the series t*yt
so when yt=y1, it is y1*1, and when yt=y2, it is y2*2
How can i programme that t?
Thanks!
Who is online
Users browsing this forum: No registered users and 2 guests
