The R Project SVN R

Rev

Rev 88603 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 88603 Rev 90299
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, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2020 R Core Team
3
% Copyright 1995-2026 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 84... Line 84...
84
  correction to a normal approximation, followed by a search.
84
  correction to a normal approximation, followed by a search.
85
 
85
 
86
  \code{rbinom} (for \code{size < .Machine$integer.max}) is based on
86
  \code{rbinom} (for \code{size < .Machine$integer.max}) is based on
87
  \bibcitet{R:Kachitvichyanukul+Schmeiser:1988}.
87
  \bibcitet{R:Kachitvichyanukul+Schmeiser:1988}.
88
  For larger values it uses inversion.
88
  For larger values it uses inversion.
-
 
89
  in \PR{19049} (2026-04) it was reported that there were two wrong signs in the
-
 
90
  above publication (already found by the GSL implementor in 2003!).  Fixing
-
 
91
  these makes very rarely a difference for \code{(size, prob)}\eqn{= (n,
-
 
92
  \pi)} combinations.  You can use \code{\link{RNGkind}(binom.kind =
-
 
93
  "BUGGY_BTPE")} to re-activate the old (very slightly) buggy behaviour,
-
 
94
  see also \code{\link{RNGkind}}.
89
}
95
}
90
\references{
96
\references{
91
  \bibshow{*}
97
  \bibshow{*}
92
}
98
}
93
\examples{
99
\examples{