BookmarkSubscribeRSS Feed
deleted_user
Not applicable
What impact does QMethod option have on the output?

thanks.
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
From the doc:
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146729.htm

QMETHOD=OS|P2|HIST
specifies the method that PROC MEANS uses to process the input data when it computes quantiles. If the number of observations is less than or equal to the QMARKERS= value and QNTLDEF=5, then both methods produce the same results.

-- OS uses order statistics. This method is the same method that PROC UNIVARIATE uses.

Note: This technique can be very memory-intensive.

-- P2|HIST uses the P² method to approximate the quantile.

Default: OS
Restriction: When QMETHOD=P2, PROC MEANS will not compute the following:
•MODE
•weighted quantiles

Tip: When QMETHOD=P2, reliable estimations of some quantiles (P1,P5,P95,P99) might not be possible for some data sets.


For more info, look at the documentation on quantiles:
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000608466.htm#a00032...

cynthia

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 6198 views
  • 0 likes
  • 2 in conversation