Hi all,
I have a general question abour proc compare.
Is the output from proc compare correct when there is no row level unique id associated with the data but I do use a non-unique column as the ID? For example, if I have an Adverse Event dataset where there is no unique id defined but I use subject number as the ID - is the result of using subject number as the ID dependable? I can also manufacture an ID based on subject number,AE text and start date but this is not guarenteed to be unique 100% of the time.
Is there a way to create an ID across both base/compare datasets to resolve this problem?
If you are doing QC of ADaM data for example use NO ID variable. You should be able to create exact duplicate of ADAE and compare row by row.
Is "NO ID" an option or do you mean dont use an ID at all ?
If no ID is defined how does the compare work?
Don't use ID statement. PROC COMPARE will compare record by record as if you said ID _N_; sort of.
If you are doing what I think you are, QCing ADaM data, I would use record level compare. No ID statement.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.