SAS function for using 'power' / exponential

Allan Bowe picture Allan Bowe · Oct 21, 2009 · Viewed 96k times · Source

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)

Answer

Allan Bowe picture Allan Bowe · Oct 21, 2009

got it! there is no function.

you need to do:

variable1 ** variable2;