How do I make an average without creating 100 vectors??

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

Lassebn
Posts: 14
Joined: Fri May 10, 2013 12:29 am

How do I make an average without creating 100 vectors??

Postby Lassebn » Fri May 10, 2013 12:52 am

I have two time series, X and Y, each containing 100 observations . From these two time series I want to create a vector for each data pair in X and Y, so 100 2x1 vectors, define these vectors as Z_t for t=1,..,100. At last I want to calculate a time series average: 1/T SUM[Z_t(Z_t)'].

Is there any way I can calculate this time series average without having to create 100 vectors from the two time series??

I use Eviews 7..

Thanks
Lasse

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

Re: How do I make an average without creating 100 vectors??

Postby startz » Fri May 10, 2013 6:20 am

Maybe

Code: Select all

z = (x+y)/2 @mean(z)

Lassebn
Posts: 14
Joined: Fri May 10, 2013 12:29 am

Re: How do I make an average without creating 100 vectors??

Postby Lassebn » Fri May 10, 2013 9:45 am

Obviously I am new to this! Thanks :)


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests