Skip to Main Content
PROC TABULATE by Example, Second Edition
book

PROC TABULATE by Example, Second Edition

by Lauren Haworth Lake, Julie McKnight
May 2015
Intermediate to advanced content levelIntermediate to advanced
348 pages
11h 31m
English
SAS Institute
Content preview from PROC TABULATE by Example, Second Edition

Quantile Statistics Examples

Medians

By default, PROC TABULATE computes the median using the same methodology as PROC UNIVARIATE. However, this method uses a lot of resources. If you are working with very large data sets and computer resources are an issue, you might want to use an alternate computational method.
The QMETHOD= option lets you select one of two computational methods for all quantile statistics. The default is QMETHOD=OS. The more efficient option is QMETHOD=HIST or QMETHOD=P2, both of which use a different algorithm to approximate the median.
To see how this option affects the results, we can compare the output created by using the default median and the output created by using the code with the addition of the QMETHOD=HIST ...
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

SAS 9.4 Language Reference, 6th Edition

SAS 9.4 Language Reference, 6th Edition

SAS Institute

Publisher Resources

ISBN: 9781607649908