Suppose I have the following dataset :
Category Premium1 Premium2
A 10 20
A 15 40
B 10 15
C 20 25
Using proc tabulate (this is a simplified exemple, I have more classification variables and two-way tables), I want to display for each category the % change of Premium2 over Premium1.
Right now I have created a Premium2_over_Premium1 variable, and I display a weighted average of this variable, where the weight is Premium1. But that gives me a factor, not a change in percentage. For example for category A I will get ((20/10)*10 + (40/15)*15)/(10 + 15)=2.4, but what I would like to see is 2.4 - 1 = 1.4 = 140%.
It seems like a simple enough task but I couldn't find a way to do it! Any help much appreciated.