powered by
Checks if parameters conform to R >= 2, r >= 2 and r <= R.
validate.Rr(R, r)
number of Bernoulli trials.
number of successes.
No return, only testing.
Liland, KH & Snipen, L, FixedTimeEvents: An R package for the distribution of distances between discrete events in fixed time, SoftwareX 5 (2016).
dLiland
# 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