Random Bernoulli trials for Liland distributed mean numbers.

Description

r successes are drawn from R trials. This is repeated n times to produce a random vector of mean Liland distributed numbers.

Usage

1
rrLiland(n, R, r)

Arguments

n

number of repeated samples.

R

number of Bernoulli trials.

r

number of successes per sample.

Value

Vector of mean distance between successful events.

Author(s)

Kristian Hovde Liland

References

Liland, KH & Snipen, L, FixedTimeEvents: An R package for the distribution of distances between discrete events in fixed time, SoftwareX, in press.

See Also

dLiland, Liland, Liland.test, simLiland

Examples

1
2
mdist <- rrLiland(1000, 25, 7)
plot(density(mdist))