Page 1 of 1

Just start Eviews programming, a simple Q

Posted: Sun Jul 17, 2011 7:56 am
by lpps
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!

Re: Just start Eviews programming, a simple Q

Posted: Sun Jul 17, 2011 12:18 pm
by EViews Gareth
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

Posted: Mon Jul 18, 2011 5:11 am
by lpps
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!

Re: Just start Eviews programming, a simple Q

Posted: Mon Jul 18, 2011 6:52 am
by startz

Code: Select all

@TREND

Re: Just start Eviews programming, a simple Q

Posted: Wed Jul 27, 2011 2:31 pm
by lpps
Thanks!!!