BookmarkSubscribeRSS Feed
Wizard
Calcite | Level 5

I am trying to replace a PROC TABULATE with PROC REPORT and  calculate percentages.   I found  PROC REPORT is missing all the same special percentages as tabulate.

The following is from tabulate documentation:

"Special percentages in PROC TABULATE include COLPCTN, COLPCTSUM, ROWPCTN, ROWPCTSUM, PAGEPCTN, and PAGEPCTSUM"

So why are these Special percentages NOT in PROC REPORT ???????     I should not have to code compute blocks to get these percentages.

These special percentages would make PROC REPORT easier to use.

Thanks

1 REPLY 1
ballardw
Super User

The two procedures are intended for different display types. Proc Tabulate allows multiple nestings in both row and column so it makes sense to have the 'special' percentages, though getting them to work as desired sometimes is an issue.

If you need them use Tabulate. But if you want to mix these percentage and column calculations you will have to do some work.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 649 views
  • 0 likes
  • 2 in conversation