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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 3948 views
  • 3 likes
  • 4 in conversation