Search code examples
sasexponent

SAS function for using 'power' / exponential


I may be missing something obvious, but how do you calculate 'powers' in SAS?

Eg X squared, or Y cubed?

what I need is to have variable1 ^ variable2, but cannot find the syntax... (I am using SAS 9.1.3)


Solution

  • got it! there is no function.

    you need to do:

    variable1 ** variable2;