yes. I have a dataset "one" containing all parameter information. I have a %macro step, which i can use to calculate the area under the Sin/Cos curve for each order. I have to check my output statement to see those values of AUC. I hope to get a dataset as "final":
***********************************************************;
my dataset "one" is:
a1 a2 b1 b2 order
1 2 3 4 1
2 3 33 4 2
12 2 3 1 3
...
............ 546
***********************************************************;
%macro AUC_hyper_(a,b,n,hBound, order );
data f1;
set one;
where order=$order;
w=1;
do i = 0 to (&n-1) ;
func=a1*cos((i+0.5)*w) + b1*sin((i+0.5)*w) + a2*cos((i+0.5)*w) + b2*sin((i+0.5)*w);
do;
y = func-&hBound;
output; end;
end;
run;
proc summary data=f1;
where y >0;
var y;
output out=p1 sum=areau;
run;
proc print data=p1;run;
%mend;
***********************************************************;
dataset "final";
a1 a2 b1 b2 order AUC
1 2 3 4 1 100
2 3 33 4 2 120
12 2 3 1 3 132
... ...
............ 546 140
***********************************************************;
Thanks!!
... View more