The R Project SVN R

Rev

Rev 61168 | Rev 67599 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61168 Rev 61975
Line 1... Line 1...
1
% File src/library/stats/man/Hypergeometric.Rd
1
% File src/library/stats/man/Hypergeometric.Rd
2
% Part of the R package, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2013 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{Hypergeometric}
6
\name{Hypergeometric}
7
\alias{Hypergeometric}
7
\alias{Hypergeometric}
8
\alias{dhyper}
8
\alias{dhyper}
Line 39... Line 39...
39
  \code{phyper} gives the distribution function,
39
  \code{phyper} gives the distribution function,
40
  \code{qhyper} gives the quantile function, and
40
  \code{qhyper} gives the quantile function, and
41
  \code{rhyper} generates random deviates.
41
  \code{rhyper} generates random deviates.
42
 
42
 
43
  Invalid arguments will result in return value \code{NaN}, with a warning.
43
  Invalid arguments will result in return value \code{NaN}, with a warning.
-
 
44
 
-
 
45
  The length of the result is determined by \code{n} for
-
 
46
  \code{rhyper}, and is the maximum of the lengths of the
-
 
47
  numerical parameters for the other functions.  
-
 
48
  
-
 
49
  The numerical parameters other than \code{n} are recycled to the
-
 
50
  length of the result.  Only the first elements of the logical
-
 
51
  parameters are used.
44
}
52
}
45
\details{
53
\details{
46
  The hypergeometric distribution is used for sampling \emph{without}
54
  The hypergeometric distribution is used for sampling \emph{without}
47
  replacement.  The density of this distribution with parameters
55
  replacement.  The density of this distribution with parameters
48
  \code{m}, \code{n} and \code{k} (named \eqn{Np}, \eqn{N-Np}, and
56
  \code{m}, \code{n} and \code{k} (named \eqn{Np}, \eqn{N-Np}, and