dgeom(x, prob, log=F) pgeom(q, prob) qgeom(p, prob) rgeom(n, prob, bigdata=F )
bdVector
of (positive) quantiles.
Missing values (
NA
s) are allowed.
bdVector
of (positive) quantiles.
Missing values (
NA
s) are allowed.
bdVector
of probabilities.
Missing values (
NA
s) are allowed.
length(n)
is larger than 1, then
length(n)
random values are returned;
otherwise
n
random values are returned.
bdVector
of probability parameters between 0 and 1.
TRUE
, an object of type
bdVector
is returned.
Otherwise, a
vector
object is returned. This argument can be used only if the bigdata library section has been loaded.
TRUE
,
dgeom
will return
the log of the density, not the density itself.
dgeom
),
probability (
pgeom
),
quantile (
qgeom
), or
random sample (
rgeom
)
for the Geometric distribution with parameter
prob
.
The quantile is defined as the smallest value
q
such that Pr(Geometric random
variate <=
x
) >=
p
.
rgeom
causes the creation of the dataset
.Random.seed
if
it does not already exist, otherwise its value is updated.
Elements of
q
or
p
that are missing will cause the
corresponding elements of the result to be missing.
For details on the uniform random number generator implemented in S-PLUS,
see the
set.seed
help file.
rgeom(20, 0.6) #sample of size 20 with parameter 0.6