what are methods to identify duplicate observations?

Answers were Sorted based on User's Feedback



what are methods to identify duplicate observations?..

Answer / hari prasad reddy

3 methods.
1.using proc sort
2.proc sql distinct
3.set first.var and last.var

Is This Answer Correct ?    10 Yes 1 No

what are methods to identify duplicate observations?..

Answer / ramesh sas trainar in stg

1.Proc Sort
2.Proc SQL Distinct
3.first.byvariable
4.last.byvariable
5.proc freq
6.Proc SQL unique
7.merge Statement

Is This Answer Correct ?    6 Yes 0 No

what are methods to identify duplicate observations?..

Answer / sudha ramalingam

You can also use nodupkey and noduprecs in your proc sort

Is This Answer Correct ?    3 Yes 0 No

what are methods to identify duplicate observations?..

Answer / 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

what are methods to identify duplicate observations?..

Answer / rag_uss

use nodupkey,noduprecs,freq,distinct in sql

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More SAS Interview Questions

HOW MANY WAYS YOU CAN RETRIEVE THE DATA FROM ORACLE TABLES? WHAT IS ORACLE CLINICAL? HOW IT IS USEFUL?

3 Answers   Accenture, Novartis,


How to include or exclude specific variables in a data set?

0 Answers  


what is treatment emergent events and treatment emregent adverse event

0 Answers  


what is SAS OPTIMIZATION?

0 Answers  


hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?

0 Answers   Cognizant,


If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?

7 Answers   Accenture,


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

0 Answers  


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

0 Answers  


What are the ways to do a “table lookup” in sas?

0 Answers  


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

0 Answers  


Explain append procedure?

0 Answers  


what is the SAS/ACCESS and SAS/CONNECT?

9 Answers   Accenture, iFlex, TCS,


Categories