The R Project SVN R

Rev

Rev 61168 | Rev 68948 | 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/Binomial.Rd
1
% File src/library/stats/man/Binomial.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{Binomial}
6
\name{Binomial}
7
\alias{Binomial}
7
\alias{Binomial}
8
\alias{dbinom}
8
\alias{dbinom}
Line 36... Line 36...
36
  \code{dbinom} gives the density, \code{pbinom} gives the distribution
36
  \code{dbinom} gives the density, \code{pbinom} gives the distribution
37
  function, \code{qbinom} gives the quantile function and \code{rbinom}
37
  function, \code{qbinom} gives the quantile function and \code{rbinom}
38
  generates random deviates.
38
  generates random deviates.
39
 
39
 
40
  If \code{size} is not an integer, \code{NaN} is returned.
40
  If \code{size} is not an integer, \code{NaN} is returned.
-
 
41
  
-
 
42
  The length of the result is determined by \code{n} for
-
 
43
  \code{rbinom}, and is the maximum of the lengths of the
-
 
44
  numerical parameters for the other functions.  
-
 
45
  
-
 
46
  The numerical parameters other than \code{n} are recycled to the
-
 
47
  length of the result.  Only the first elements of the logical
-
 
48
  parameters are used.
41
}
49
}
42
\details{
50
\details{
43
  The binomial distribution with \code{size} \eqn{= n} and
51
  The binomial distribution with \code{size} \eqn{= n} and
44
  \code{prob} \eqn{= p} has density
52
  \code{prob} \eqn{= p} has density
45
  \deqn{p(x) = {n \choose x} {p}^{x} {(1-p)}^{n-x}}{
53
  \deqn{p(x) = {n \choose x} {p}^{x} {(1-p)}^{n-x}}{