Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SAS: assign a quantile to a macro variable

Tags:

sas

sas-macro

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


Not working 1

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

Not working 2

%let z = %sysfunc(quantile("normal", 0.975));
like image 882
user7064 Avatar asked Dec 06 '25 21:12

user7064


1 Answers

Macro does NOT like unnecessary quotes:

%let z = %sysfunc(quantile(normal, 0.975));
like image 171
Haikuo Bian Avatar answered Dec 10 '25 20:12

Haikuo Bian