Skip to Main Content
Statistical Programming in SAS
book

Statistical Programming in SAS

by John Bailer
April 2015
Intermediate to advanced content levelIntermediate to advanced
460 pages
14h 45m
English
SAS Institute
Content preview from Statistical Programming in SAS
Chapter 8: Formatting Variables, Recoding Variables, and Writing Programs 317
Display 8.55 QUANTILE function
data quant_calc;
* z examples ;
zq_50 = QUANTILE('Normal',0.50);
zq_90 = QUANTILE('Normal',0.90);
zq_95 = QUANTILE('Normal',0.95);
zq_975 = QUANTILE('Normal',0.975);
put "Z: 50th percentile = " @25 zq_50;
put "Z: 90th percentile = " @25 zq_90;
put "Z: 95th percentile = " @25 zq_95;
put "Z: 97.5th percentile = " @25 zq_975;
put " ";
* binomial examples;
binq_50 = QUANTILE('Binomial',0.50,.50,4);
binq_90 = QUANTILE('Binomial',0.90,.50,4);
binq_95 = QUANTILE('Binomial',0.95,.50,4);
binq_975 = QUANTILE('Binomial',0.975,.50,4);
put "Binomial: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Elementary Statistics Using SAS

Elementary Statistics Using SAS

Sandra D. Schlotzhauer

Publisher Resources

ISBN: 9781607645047