SAS功能使用'power'/ exponential

All*_*owe 19 sas exponent

我可能会遗漏一些明显的东西,但你如何计算SAS中的"权力"?

例如X平方,或Y立方?

我需要的是变量1 ^ variable2,但找不到语法...(我使用的是SAS 9.1.3)

All*_*owe 29

得到它了!没有功能.

你需要做的:

variable1**variable2;


小智 5

data t;
  num = 5;
  pow = 2;
  res = num**pow;
run;
proc print data = t;
run;
Run Code Online (Sandbox Code Playgroud)