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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 753 views
  • 0 likes
  • 2 in conversation