Learn R Programming

fixedTimeEvents (version 1.0.1)

validate.Rr: Validation of Liland distribution parameters.

Description

Checks if parameters conform to R >= 2, r >= 2 and r <= R.

Usage

validate.Rr(R, r)

Arguments

R

number of Bernoulli trials.

r

number of successes.

Value

No return, only testing.

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

Examples

Run this code
# NOT RUN {
validate.Rr(20,10)
# }
# NOT RUN {
# r>R results in an error.
  validate.Rr(20,30)
# }

Run the code above in your browser using DataLab