Hello, I have two data sets (i.e., Temp1 and Temp2). Temp1 has one variable x with 20000 observations, and Temp2 contains four variables y1, y2, z1 and z2 with 60000 observations. I used the following codes to obtain variable mu, but it took a lot of time to get the result with the large sample sizes. Is there a way that can have SAS run faster? Thanks! proc sql noprint; select x into :x1 - :x20000 from temp1;quit;
data temp3;
set temp2;
%do i= 1 %to 20000;
T&i.= (constant('E')**(y1*(&&x&i.-z1)) - constant('E')**(y2*(&&x&i.-z2)))**2
%end;
mu = mean (of T1-T20000));
run;
... View more