what are methods to identify duplicate observations?

Answer Posted / natrajboga

you can Identify the duplicate values by using
1) sort procedure along with the dupout= and nodupkey stmt
options and followed by BY stmt.
2) use the proc sql

for example:

proc sort data=demog dupout=dup_demog nodupkey;
by subjid;
run;

proc sql;

select subjid, count(*) from demog
group by subjid
having count(*)>1;
quit;

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why a stop statement is needed for the point= option on a set statement?

631


I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry

1331


What is the SAS data set?

679


what are some good sas programming practices for processing very large data sets? : Sas programming

515


What is a method to debug and test your SAS program?

726






Compare sas with other data analytics tools.

589


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1105


what other sas products have you used and consider yourself proficient in using? : Sas programming

690


what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming

574


Give e an example of..

1851


where to use sas business intelligence? : Sas-bi

582


which date function advances a date, time or datetime value by a given interval? : Sas programming

602


what is change analysis in sas di ? : Sas-di

608


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2010


What is substr function?

626