[prev in list] [next in list] [prev in thread] [next in thread]
List: sas-l
Subject: Re: Using PROC COMPARE , comparing by sub group ( patient visit )
From: Ed Heaton <EdHeaton () WESTAT ! COM>
Date: 2008-05-30 19:44:40
Message-ID: 403593359CA56C4CAE1F8F4F00DCFE7D0C1E4C9B () MAILBE2 ! westat ! com
[Download RAW message or body]
First create some data with differences.
Data
Class1( where=( ranUni(61776817) lt 0.8 ) )
Class2( where=( ranUni(61776817) lt 0.8 ) )
;
Set sasHelp.Class ;
Output Class1 ;
If ( ranUni(61776817) lt 0.2 )
then Age = ceil( ranUni(61776817) * 5 ) + 10 ;
Output Class2 ;
Run ;
Then output the differences.
Proc compare
base=Class1
compare=Class2
out=differences
outDif
;
By Name ;
Run ;
Is this what you are after?
Ed
Edward Heaton, Senior Systems Analyst,
Westat (An Employee-Owned Research Corporation),
1650 Research Boulevard, TB-286, Rockville, MD 20850-3195
Voice: (301) 610-4818 Fax: (301) 294-2085
mailto:EdHeaton@Westat.com http://www.Westat.com
-----Original Message-----
From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu]
On Behalf Of idostatistics@gmail.com
Sent: Friday, May 30, 2008 2:34 PM
To: sas-l@uga.edu
Subject: Using PROC COMPARE , comparing by sub group ( patient visit )
How do you use PROC COMPARE for , not row-by-row comparison, but compare
by individuals, say by PATIENT or PATIENT-VISIT, to produce an output
dataset that has the rows for all patients or patient-visits for which
the data is in any way different?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic