SQUANTILE Function
Returns the quantile from a distribution when you specify the right probability (SDF).
| Category: | Quantile |
| Restriction: | This function is not valid on the CAS server. |
| See: | SDF Function |
Syntax
Required Arguments
distribution
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 |
|
Conway-Maxwell-Poisson
|
CONMAXPOI |
|
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 |
probability
is a numeric constant, variable, or expression that specifies the value of a random variable.
parameter-1, …, parameter-k
are optional shape, location, or scale parameters that are appropriate for the specific distribution.
Details
Examples
Example 1: Using the LOGISTIC Distribution
data; dist='logistic'; sdf=squantile(dist, 1.e-20); put sdf=; p=sdf(dist, sdf); put p=/* p will be 1.e-20 */; run;
sdf=46.05170186 p=1E-20
Example 2: Using the Conway-Maxwell-Poisson Distribution
data _null_;
y=squantile('conmaxpoi',.2,2.3,.4);
put y=;
run; y=12