Just start Eviews programming, a simple Q

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

lpps
Posts: 3
Joined: Sun Jul 17, 2011 7:47 am

Just start Eviews programming, a simple Q

Postby lpps » Sun Jul 17, 2011 7:56 am

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!

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

Postby EViews Gareth » Sun Jul 17, 2011 12:18 pm

I don't understand your question. Or, rather, as far as I can tell, you've answered it yourself.

lpps
Posts: 3
Joined: Sun Jul 17, 2011 7:47 am

Re: Just start Eviews programming, a simple Q

Postby lpps » Mon Jul 18, 2011 5:11 am

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!

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Just start Eviews programming, a simple Q

Postby startz » Mon Jul 18, 2011 6:52 am

Code: Select all

@TREND

lpps
Posts: 3
Joined: Sun Jul 17, 2011 7:47 am

Re: Just start Eviews programming, a simple Q

Postby lpps » Wed Jul 27, 2011 2:31 pm

Thanks!!!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests