I have a table in SAS like the one in screen shot. I need to add one more column to show the percentage of sub-total for each category. For example, class_type='1-LOWER UG' and Campus='1-TPA', the percentage (using CY column) would be 7368/42008 = 17.5%; class_type='2-UPPER UG' and Campus='1-TPA', the percentage (using CY column) would be 22801/42008 = 54.3%.... Is there a simple way to do this? Will appreciate any help! Thanks!
Please provide data as SAS data step code, following these instructions. This needs to be done 100% of the time, so we actually have data that we can work with. Screen captures are not acceptable and not usable in developing code.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.