how to display duplicated observations in a data using base
sas.

Answer Posted / prakash hullathi

use frequency procedure with single column
data dups;
input var1;
datalines;
1
2
3
4
4
3
5
6
;
run;
proc freq data=dups;
tables var1/norow nocol nopercent;
run;


The output will be like this


var1 frequency cumulative frequency
1 1 1
2 1 2
3 2 4
4 2 6
5 1 7
6 1 8


here the observations for the variable var1 3 and 4 are
appered 2 times and remaining appeared for 1 time by
seeing the frequency of corresponding variable and
observation

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you test for missing values? : Sas programming

568


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

614


What are types of transport files?

6809


Do you need to rearrange the order of the data for the report?

1825


What are the different operating system platforms in which we can use sas? : sas-grid-administration

579






What are the difference between ceil and floor functions in sas?

692


what are all the reports you generated in your recent project?

1672


what are sas bi dashboard components? : Sas-bi

650


Can you suggest us materials for sdtm mapping?

4025


If you could design your ideal job, what would it look like?

2358


What is the use of stop statement?

627


For clinical entire study how many tables will create approx?

1510


Describe 5 ways to do a “table lookup” in SAS?

688


describe the interaction table in sas di? : Sas-di

577


What is the difference between one to one merge and match merge? Give an example.

557