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 (May 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 15 May 2002 11:19:24 -0700
Reply-To:     MNess@CROMEDICA.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Matthew Ness <MNess@CROMEDICA.COM>
Subject:      Re: Count across the row
Content-type: text/plain; charset=us-ascii

Hi Qin,

Perhaps what you are looking for is the OUTPERCENT option in the proc compare statement. You can read more about it here:

http://sasdocs.ats.ucla.edu/proc/z0057814.htm

HTH, Matt

qjiang <qjiang@GMCF.O To: SAS-L@LISTSERV.UGA.EDU RG> cc: Sent by: Subject: Count across the row "SAS(r) Discussion" <SAS-L@LISTSER V.UGA.EDU>

15/05/02 10:55 AM Please respond to qjiang

Hi all,

I have a PROC COMPARE output data set with about 400 variables compared. The data set is like:

ID v1 v2 V3 V4 V5 1 E E E . 3 2 E . . 2 E .....

Is there an easy way to count the percent of equals ?

My expected output ID %eq 1 60% 2 40%

Thanks in advance.

Qin


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