Page 1 of 1

average of pool

Posted: Mon May 09, 2016 1:18 am
by jenni
Hi,

A really stupid question so pls brace yourself. I can not seem to create an average for each year for my pool variables. I have forecasted etc and now want to create a group average for each year for each region.

my syntax is

smpl 1990 2018
poolmain1.makegroup(urban_south_america) exp(argentina_urban) exp(bolivia_urban) exp(brazil_urban) exp(colombia_urban) exp(ecuador_urban) exp(paraguay_urban) exp(peru_urban) exp(suriname_urban) exp(uruguay_urban) exp(venezuela_urban) exp(chile_urban)
poolmain1.genr south_us= @mean(urban_south_america)

I would really appreciate it if you could let me know how I create an average for each year within my group please.

I apologise again for this basic question.

Re: average of pool

Posted: Mon May 09, 2016 1:23 am
by EViews Gareth
Do it outside of the group and use the @rmean function.

http://www.eviews.com/help/helpintro.ht ... tions.html

Re: average of pool

Posted: Mon May 09, 2016 1:33 am
by jenni
Will that give me the mean across the group for each year? It's so easy to do but somehow not working for me.


poolmain1.genr urban_s_am= @rmean(argentina_urban, bolvia_urban)

says not enough arguments

Re: average of pool

Posted: Mon May 09, 2016 1:38 am
by EViews Gareth
As I said, do it outside of the pool.

Code: Select all

series mymeans = @rmean(mygroup)

Re: average of pool

Posted: Mon May 09, 2016 1:40 am
by jenni
You actually said outside the group not pool

Re: average of pool

Posted: Mon May 09, 2016 2:20 am
by EViews Gareth
Indeed, apologies.