The SAS Output Delivery System and reporting techniques

Table 'Summary of changes'

Reply
Frequent Contributor
Posts: 134

Table 'Summary of changes'

[ Edited ]

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

Untitled.jpgUntitled2.jpg

 

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

Attachment
Super User
Posts: 11,343

Re: Table 'Summary of changes'

Posted in reply to DmytroYermak

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.

SAS Super FREQ
Posts: 8,866

Re: Table 'Summary of changes'

Posted in reply to DmytroYermak
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
Ask a Question
Discussion stats
  • 2 replies
  • 154 views
  • 0 likes
  • 3 in conversation