Date: Wed, 25 Apr 2007 13:33:55 -0400
Reply-To: "data _null_;" <datanull@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "data _null_;" <datanull@GMAIL.COM>
Subject: Re: counting of a variable
In-Reply-To: <37a21d070704251023i63bbe137ieb7ed6de34f239c0@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Create a format to group the patientnumbers by weight. There are many
ways to count with grouping I choose PROC SUMMARY. For example.
proc format;
value wtgrp
low-<80 = 'LT 80'
80-high = 'GE 80'
;
run;
proc summary data=sashelp.class nway;
class weight;
format weight wtgrp.;
output out=work.counts(drop=_type_);
run;
proc print;
run;
On 4/25/07, ks purnima <ks.purnima@gmail.com> wrote:
> Hi,
>
> I have patinfo dataset , it contains variables like
> patientnumber,age,sex,gender,weight,.........
>
> how do we find the number of patients whose weight is less than 50 kgs and
> greater 50 kgs.
>
|