Search found 4 matches

by Valentina
Wed Oct 27, 2010 9:41 am
Forum: Data Manipulation
Topic: weighted mean- country panel data
Replies: 7
Views: 8811

Re: weighted mean- country panel data

Thank you very much Glenn, and sorry if my explanations are ambiguous. The first expression works. The second one is not working; I have an error message saying “sizes do not match in matrix function”. I’m actually computing the weighted mean of life expectancy for each year using pop as the weights...
by Valentina
Thu Oct 21, 2010 12:40 pm
Forum: Data Manipulation
Topic: weighted mean- country panel data
Replies: 7
Views: 8811

Re: weighted mean- country panel data

If I correctly understand your question the denominator should be
(3) sum_{t} pop_it for t=1,...T

the sum of population for every period t
by Valentina
Thu Oct 21, 2010 10:22 am
Forum: Data Manipulation
Topic: weighted mean- country panel data
Replies: 7
Views: 8811

Re: weighted mean- country panel data

Sorry if I have not been so clear (and if my English is not very good). My workfile is structured as follows: I have a panel with 150 countries (that I have then grouped in blocs), years 1960 to 2008. Amongst my variables I have the life expectancy at birth for each country (lifexp) and each year an...
by Valentina
Thu Oct 21, 2010 7:17 am
Forum: Data Manipulation
Topic: weighted mean- country panel data
Replies: 7
Views: 8811

weighted mean- country panel data

Hi all! I'm using EViews 7 and I have a panel workfile containing data for different countries. I would like to get the weighted mean of a variable across time using population weights. There is a way to construct this variable and to see it in a spreadsheet? I know I can use View->Descriptive Stati...

Go to advanced search