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