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

what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?

1911


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

1869


how to generate the test data in sas without input data? : Sas-administrator

788


Explain what is the use of proc gplot?

899


Which command is used to perform sorting in sas program?

771






explain the function of substr in sas? : Sas-administrator

750


what has been your most common programming mistake? : Sas programming

768


what is sas olap server? : Sas-di

942


What are the different servers in sas? : sas-grid-administration

812


explain the main difference between the nodup and nodupkey options? : Sas-administrator

904


What is the difference between input and infile statement?

859


What is the maximum length of the macro variable? : sas-macro

832


explain the difference between proc means and proc summary?

851


Explain the special input delimiters used in sas programming.

750


Mention what is the difference between nodupkey and nodup options?

770