QUANTILE Function

Returns the quantile from a distribution when you specify the left probability (CDF).

Category: Quantile
See: CDF Function

Syntax

Required Arguments

dist

is a character constant, variable, or expression that identifies the distribution. Valid distributions are as follows:

Distribution
Argument
Bernoulli
BERNOULLI
Beta
BETA
Binomial
BINOMIAL
Cauchy
CAUCHY
Chi-Square
CHISQUARE
Exponential
EXPONENTIAL
F
F
Gamma
GAMMA
Generalized Poisson
GENPOISSON
Geometric
GEOMETRIC
Hypergeometric
HYPERGEOMETRIC
Laplace
LAPLACE
Logistic
LOGISTIC
Lognormal
LOGNORMAL
Negative binomial
NEGBINOMIAL
Normal
NORMAL|GAUSS
Normal mixture
NORMALMIX
Pareto
PARETO
Poisson
POISSON
T
T
Tweedie
TWEEDIE
Uniform
UNIFORM
Wald (inverse Gaussian)
WALD|IGAUSS
Weibull
WEIBULL
Note: Except for T, F, and NORMALMIX, you can minimally identify any distribution by its first four characters.

probability

is a numeric constant, variable, or expression that specifies the value of a random variable.

parm-1,…,parm-k

are optional shape, location, or scale parameters appropriate for the specific distribution.

Details

The QUANTILE function computes the probability from various continuous and discrete distributions. For more information, see the Detailssection of the CDF function.

Example

The following SAS statements produce these results.
SAS Statement
Result
y=quantile('BERN',.75,.25);
0
y=quantile('BETA',0.1,3,4);
0.2009088789
y=quantile('BINOM',.4,.5,10);
5
y=quantile('CAUCHY',.85);
1.9626105055
y=quantile('CHISQ',.6,11);
11.529833841
y=quantile('EXPO',.6);
0.9162907319
y=quantile('F',.8,2,3);
2.8860266073
y=quantile('GAMMA',.4,3);
2.285076904
y=quantile('GENPOISSON',.9,1,.7);
9
y=quantile('HYPER',.5,200,50,10);
2
y=quantile('LAPLACE',.8);
0.9162907319
y=quantile('LOGISTIC',.7);
0.8472978604
y=quantile('LOGNORMAL',.5);
1
y=quantile('NEGB',.5,.5,2);
1
y=quantile('NORMAL',.975);
1.9599639845
y=quantile('PARETO',.01,1);
1.0101010101
y=quantile('POISSON',.9,1);
2
y=quantile('T',.8,5);
0.9195437802
y=quantile('TWEEDIE',.8,5);
1.261087383
y=quantile('UNIFORM',0.25);
0.25
y=quantile('WALD',.6,2);
0.9526209927
y=quantile('WEIBULL',.6,2);
0.9572307621