SQUANTILE Function

Returns the quantile from a distribution when you specify the right probability (SDF).

Category: Quantile
See: SDF 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 that are appropriate for the specific distribution.

Details

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

Example

This is an example of the SQUANTILE function.
data;
   dist = 'logistic';
   sdf = squantile(dist,1.e-20);
   put sdf=;
   p = sdf(dist,sdf);
   put p= /* p will be 1.e-20 */;
run;
SAS writes the following output to the log:
sdf=46.05170186
p=1E-20