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
SAS Super FREQ
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

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 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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 5283 views
  • 0 likes
  • 3 in conversation