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
Explain data step in SAS
What do you code to create a macro? : sas-macro
what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming
do you need to know if there are any missing values? : Sas programming
How we can call macros with in data step? : sas-macro
What versions of SAS have you used (on which platforms)?
What is the maximum and minimum length of macro variable
What is the use of function Proc summary?
what type of graphs we will create(for 2+years candidates)?
How to create list output for cross-tabulations in proc freq?
what is hierarchy flattening? : Sas-di
What are the data types that sas contain?
Name and describe few sas character functions that are used for data cleaning in brief.
Differentiate between proc means and proc summary.
Do you know the features of sas?