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