LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: ks purnima <ks.purnima@gmail.com>
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. >


Back to: Top of message | Previous page | Main SAS-L page