Hello All,
I have the dataset below
...and I have been asked to present/generate a table like the one below.
I have played around with proc report but no luck yet. I don't know how to manipulate the data so that the numbers are placed in the right column/rows within my report.
I will appreciate some help.
Thanks
The first picture I posted is from a proc freq action.
I'll appreciate if you can help with some more clarity per using proc tabulate to produce a similar report as contained in the second picture.
Thanks
@nduksy wrote:
The first picture I posted is from a proc freq action.
I'll appreciate if you can help with some more clarity per using proc tabulate to produce a similar report as contained in the second picture.
Thanks
Actual data please. As in a data step to create a data set.
If you want to use Proc Tabulate you might be better off using the source data instead of Proc Freq output, if that is the request. Do you want the counts? the Percents? it is not clear what expect Proc Tabulate to create as there are NO VALUES in the table. Your example also implies that the Ebola Negative results are supposed to be suppressed (not shown) but have a row in the data.
Thank you so much, that actually worked perfectly!!!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.