3

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));
Joe
  • 62,789
  • 6
  • 49
  • 67
user7064
  • 217
  • 2
  • 8

1 Answers1

5

Macro does NOT like unnecessary quotes:

%let z = %sysfunc(quantile(normal, 0.975));
Joe
  • 62,789
  • 6
  • 49
  • 67
Haikuo Bian
  • 906
  • 6
  • 7
  • 1
    Hi Haikuo - I made a few minor adjustments to match our site's style (we don't generally use salutations or smiley-faces in answers, and added code indenting - four spaces before or ctrl+k). Welcome! – Joe Jun 03 '15 at 16:24