BookmarkSubscribeRSS Feed
drkrunal
Calcite | Level 5
While doing analysis on NRD database with SAS 9.4, I defined IndexEvent using primary diagnosis variable (DX1) and calculated 30-day readmission rates for IndexEvent.
I want to find out the Primary Diagnosis for Readmission. I want to know the reason for readmission if its same as IndexEvent or any other reason for Readmisssion. Which variable I should use to look for Readmission Primary Diagnosis?? Any Specific SAS code I should use??
Anyone familiar with this please guide.
 
Thank you in advance!
1 REPLY 1
mkeintz
PROC Star

No doubt there is specific sas code you could use.   Show us some specific sample data - namely a data step with the initial data, and a data step with the desired data.

 

Help us help you.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1380 views
  • 0 likes
  • 2 in conversation