SAS: assign quantile to macro variable

In SAS, how can I assign the 97.5% quantile of the normal distribution to a macro variable z

?


Doesn't work 1

%let z = quantile("normal", 0.975); 

      

Doesn't work 2

%let z = %sysfunc(quantile("normal", 0.975));

      

+3


source to share


1 answer


Macro DOES NOT like unnecessary quotes:



%let z = %sysfunc(quantile(normal, 0.975));

      

+5


source







All Articles