On Sat, 21 Nov 2009, Sven Schreiber wrote:
Remigijus Lapinskas schrieb:
> Dear all,
>
> I have two columns (irregular frequences):
>
> x y
>
> 0 2.1
> 0 3.4
>
> 1 5.0
> 1 1.1
> 1 2.2
>
> 2 3.2
>
> 3 1.2
> 3 8.8
> ....
>
> I want to average y's in the first group (i=0), then second(i=1) etc How
> can I do this?
>
matrix X = {x, y} # if x, y are series
matrix myaverages = meanc(X)
That's one interpretation of Remigijus's question. I thought he
perhaps meant, how to get y-averages for each value of x (though
he wrote "i"). If it's the latter, he should just use smpl with
--restrict in a loop.
Allin Cottrell