BookmarkSubscribeRSS Feed
DmytroYermak
Lapis Lazuli | Level 10

*the text has been edited

 

Hi all,

 

Could you please advise how to prepare table 'Summary of changes' from the dataset:

 

Patient number Treatment Arm Visit System Result

 

What should be an algorythm? Should proc tabulate be used? Or proc report? Could you provide any examples of the code.

 

Here below is the view of the dataset and the table.

 

 

Thank you in advance for any replies. The executable .sas for the dataset is attached.

 

2 REPLIES 2
ballardw
Super User

I suspect this can be done with a little reformating of the data so we can get a row "visit" and a column "visit".

However most of us do not have time to retype data from an image and your example data has no value for result other than normal.

 

You can make data step code for pasting in the forum from a SAS data set: Instructions here: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.

Cynthia_sas
Diamond | Level 26
Hi:
This previous forum posting has some useful links for how safety and efficacy reports are typically done:
https://communities.sas.com/t5/SAS-in-Health-Care-Related/how-to-create-efficacy-and-safety-tables-i...

cynthia

Catch up on SAS Innovate 2026

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

Explore Now →
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 41878 views
  • 0 likes
  • 3 in conversation