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
Which statement does not perform automatic conversions in comparisons?
What is the difference between the proc sql and data step?
What do the PUT and INPUT functions do?
what are the considerations when picking a SAS/STAT procedure?
what is the difference between floor and ceil functions in sas? : Sas-administrator
how do you debug and test your sas programs? : Sas programming
what is sas data set?
What’s the difference between var b1 – b3 and var b1 — b3?
What are the difference between ceil and floor functions in sas?
How will you generate test data with no input data?
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
Can you explain the process of calendar?
Of all your work, where have you been the most successful?
how can you create zero observation dataset? : Sas programming
If money were no object, what would you like to do?