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