Dear Allin and Artur,
thanks for your kind suggestions. Now everything is much more simple!
Regards
Leandro
2011/3/9 Allin Cottrell
> On Tue, 8 Mar 2011, Leandro Zipitria wrote:
>
> > I am working with a panel and I want to get the mean for each
> > unit, but just once. If I use the pmean(x) I
On Tue, 8 Mar 2011, Leandro Zipitria wrote:
> I am working with a panel and I want to get the mean for each
> unit, but just once. If I use the pmean(x) I get the mean of
> each unit repeated for each observation in that unit.
The quick method:
matrix pmx = values(pmean(x))
But if two or more p
Hi Leandro,
You can try the following script:
/open "C:\Program Files\gretl\data\misc\abdata.gdt"
# use of pmean through all observations
genr x1 = pmean(WAGE)
# restrict sample for unit 1; use --balanced flag to save panel structure
smpl unit=1 --restrict --balanced
# compute the mean of WAGE for
Dear Gretl community,
I am working with a panel and I want to get the mean for each unit, but just
once. If I use the pmean(x) I get the mean of each unit repeated for each
observation in that unit.
Is there any way to get the mean of each unit once?
As an example, I have a variable call Sales, s