Learn R Programming

fixedTimeEvents (version 1.0.1)

rrLiland: 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

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.

References

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

See Also

dLiland, Liland, Liland.test, simLiland

Examples

Run this code
# NOT RUN {
mdist <- rrLiland(1000, 25, 7)
plot(density(mdist))
# }

Run the code above in your browser using DataLab