|
1 | 1 | % File src/library/stats/man/GammaDist.Rd |
2 | 2 | % Part of the R package, https://www.R-project.org |
3 | | -% Copyright 1995-2020 R Core Team |
| 3 | +% Copyright 1995-2025 R Core Team |
4 | 4 | % Distributed under GPL 2 or later |
5 | 5 |
|
6 | 6 | \name{GammaDist} |
@@ -35,7 +35,8 @@ rgamma(n, shape, rate = 1, scale = 1/rate) |
35 | 35 | \item{log, log.p}{logical; if \code{TRUE}, probabilities/densities \eqn{p} |
36 | 36 | are returned as \eqn{log(p)}.} |
37 | 37 | \item{lower.tail}{logical; if TRUE (default), probabilities are |
38 | | - \eqn{P[X \le x]}, otherwise, \eqn{P[X > x]}.} |
| 38 | + \eqn{P[X < x]}, otherwise, \eqn{P[X \ge x]} (exceptionally not |
| 39 | + \emph{cadlag} here, to ensure, e.g., \code{pgamma(0, shape=0)} remains zero).} |
39 | 40 | } |
40 | 41 | \value{ |
41 | 42 | \code{dgamma} gives the density, |
@@ -76,7 +77,7 @@ rgamma(n, shape, rate = 1, scale = 1/rate) |
76 | 77 | } |
77 | 78 |
|
78 | 79 | Note that for smallish values of \code{shape} (and moderate |
79 | | - \code{scale}) a large parts of the mass of the Gamma distribution is |
| 80 | + \code{scale}) a large part of the mass of the Gamma distribution is |
80 | 81 | on values of \eqn{x} so near zero that they will be represented as |
81 | 82 | zero in computer arithmetic. So \code{rgamma} may well return values |
82 | 83 | which will be represented as zero. (This will also happen for very |
|
0 commit comments