powered by
This function converts a rate to a probability using the formula 1 - exp(-rate).
1 - exp(-rate)
rate2prob(rate)
A numeric value representing the probability.
A numeric value representing the rate.
rate <- 0.1 prob <- rate2prob(rate) print(prob)
Run the code above in your browser using DataLab