14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A JSL Syntax Reference 599<br />

Discrete Probability Functions<br />

Hypergeometric Distribution(N, K, n, x, )<br />

Description<br />

Returns the cumulative distribution function at x for the hypergeometric distribution with population<br />

size N, K items in the category of interest, sample size n, count of interest x, and optional odds ratio r.<br />

Hypergeometric Probability(pop, k, n, x, )<br />

Description<br />

Returns the probability that a hypergeometrically distributed random variable is equal to x.<br />

Arguments<br />

pop Population size.<br />

k The Number of items in the category of interest.<br />

n Sample size.<br />

x Count of interest.<br />

r Optional odds ratio.<br />

Neg Binomial Distribution(p, n, k)<br />

Description<br />

Returns the probability that a negative binomially distributed random variable is less than or equal to k,<br />

where the probability of success is p and the number of successes is n.<br />

Neg Binomial Probability(p, n, k)<br />

Description<br />

Returns the probability that a negative binomially distributed random variable is equal to k, where the<br />

probability of success is p and the number of successes is n.<br />

Poisson Distribution(lambda, k)<br />

Description<br />

Returns the cumulative distribution function at k for the Poisson distribution with mean lambda.<br />

Poisson Probability(lambda, k)<br />

Description<br />

Returns the probability that a Poisson distributed random variable with mean lambda is equal to k.<br />

Poisson Quantile(lambda, cumprob)<br />

Description<br />

Returns the smallest integer quantile for which the cumulative probability of the Poisson(lambda)<br />

distribution is larger than or equal to cumprob.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!