Previous Page | Next Page

Functions and CALL Routines

QUANTILE Function



Returns the quantile from a distribution that you specify.
Category: Quantile
See: CDF Function

Syntax
Arguments
Examples
See Also

Syntax

QUANTILE(dist, probability, parm-1,...,parm-k)


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
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
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.  [cautionend]

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.

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


Examples

SAS Statements Results
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('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('UNIFORM',0.25);
0.25
y=quantile('WALD',.6,2);
0.9526209927
y=quantile('WEIBULL',.6,2);
0.9572307621


See Also

Functions:

LOGCDF Function

LOGPDF Function

LOGSDF Function

PDF Function

SDF Function

CDF Function

Previous Page | Next Page | Top of Page