PROBHYPR Function


PROBHYPR Function

Returns the probability from a hypergeometric distribution

Category: Probability

See: 'CDF Function' on page 418

Syntax

PROBHYPR ( N,K,n,x <, r >)

Arguments

N

  • is an integer population size parameter, with N 1.

  • Range:

K

  • is an integer number of items in the category of interest parameter.

  • Range: K N

n

  • is an integer sample size parameter.

  • Range: n N

x

  • is an integer random variable.

  • Range: max (0, K + n - N ) x min ( K , n )

r

  • is an optional numeric odds ratio parameter.

  • Range: r

Details

The PROBHYPR function returns the probability that an observation from an extended hypergeometric distribution, with population size N , number of items K , sample size n , and odds ratio r , is less than or equal to x . If the optional parameter r is not specified or is set to 1, the value returned is from the usual hypergeometric distribution.

Examples

SAS Statements

Results

x=probhypr(200,50,10,2);

0.5236734081




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net