BookmarkSubscribeRSS Feed
Sandhya
Fluorite | Level 6

Hi

I've a dataset with 4 variables.  Example of the Table is

IDCODEMOD
AMOUNT
110100
11020110
110AA120
11022105
110BB130
21020103
21022109
210BB115

I wanted to consolidate it like

MOD
NONE20AA22
BB
NONE1(100)1(210)1(220)
201(210)1(110)1(230)
AA
222(459)
BB

It's the total number of id's in each combination and the total amount incurred by it.

Please help in deriving this solution.

Thanks,

Sandy.

1 REPLY 1
PGStats
Opal | Level 21

Could you explain further? The example doesn't seem complete? The combination 20-22 exists in both IDs and there is no total. 20-20 is not a combination in either ID.

PG

PG

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 808 views
  • 0 likes
  • 2 in conversation