: geoinv (x, p)

For each element of x, compute the quantile (the inverse of the CDF) at x of the geometric distribution with parameter p.

The geometric distribution models the number of failures (x) of a Bernoulli trial with probability p before the first success.

Package: statistics