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 (October 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 2 Oct 2002 15:49:29 -0400
Reply-To:     Amanda <amrlar2002@YAHOO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Amanda <amrlar2002@YAHOO.COM>
Subject:      Creating a variable with N/D and percent

I am fairly new to SAS and have a problem I just cant seem to figure out. I have the following dataset that for each variable I need to create a variable that contains: Numerator(number of observations = 0)/Denominator (number of observations = to 1 or 0) and percent of N/D. What's the best way to approch this? id A B C 1 0 0 1 2 1 1 0 3 1 1 0 4 1 1 1 5 1 1 1 6 1 1 1 7 1 1 1 8 1 0 0 9 0 1 1 10 1 1 1 11 1 1 1 12 1 1 0 13 1 1 1 14 1 1 0 15 0 0 1 16 1 1 1

Thanks


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