BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
kannand
Lapis Lazuli | Level 10

One way to do it after you have the data is using a dedup step using a sort:

 

Proc sort data=your dataset name nodupkeys;

   By sic total_assets;

Run;

 

The other way would be by eliminating the duplicates within the process sql step like a "select distinct".

Kannan Deivasigamani
wajmsu
Obsidian | Level 7

Hi PG,

I really appreciate following your codes.  I am working on another project where I have to match on age (± 3), edu (±2), race, parity (0,≥1)

and date of blood sample.  I was unable to enter date of blood sample variable correctly, however sample data (cases and controls) available.   Can you guide me how to proceed on matching cases with controls (1 case with 2 controls)?

 

Thanks

Abdul       

PGStats
Opal | Level 21

Sounds like an interesting problem. Please post as a new topic with input/expected_output example data, in the SAS Statistical Procedures community.

PG

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 17 replies
  • 3993 views
  • 3 likes
  • 4 in conversation