Date: Mon, 9 Mar 2009 10:18:03 -0400
Reply-To: Jake Bee <johbee@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jake Bee <johbee@GMAIL.COM>
Subject: Re: means
In-Reply-To: <4a7fcc1f-5796-4284-b6ca-9bfd5cca30e6@41g2000yqf.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
data age_groups;
infile datalines missover;
input parity age;
datalines;
1 20
1 18
1 23
2 30
2 36
3 40
3 56
3 48
4 52
4 82
;
run;
proc means data=age_groups NOPRINT;
class parity;
var age;
output out=m_pa(where=(_type_=1)) mean=mean std=std median=med min=min
max=max;
run;
On Mon, Mar 9, 2009 at 10:04 AM, 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
>
|