Date: Mon, 9 Mar 2009 10:38:38 -0400
Reply-To: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject: Re: means
Something like that:
data a;
input
Parity Age;
cards;
1 20
1 18
1 23
2 30
2 36
3 40
3 56
3 48
4 52
4 82
;
run;
proc summary nway;
class parity;
var age;
output out=x mean=;
run;
If you prefer MEANS, use the option NOPRINT.
Gerhard
On Mon, 9 Mar 2009 07:04:59 -0700, Emanuela <MANUP9@GMAIL.COM> wrote:
>Hello everybody,
>My data look like:
>Parity Age
>1 20
>1 18
>1 23
>2 30
>2 36
>3 40
>3 56
>3 48
>4 52
>4 82
>I would like to find the age mean for each parity. I have some
>difficulties to perfom it with the proc means.
>
>Does anyone know it?
>
>Thanks in advance
|