Skip to contents

This function converts a rate to a probability using the formula 1 - exp(-rate).

Usage

rate2prob(rate)

Arguments

rate

A numeric value representing the rate.

Value

A numeric value representing the probability.

Examples

rate <- 0.1
prob <- rate2prob(rate)
print(prob)
#> [1] 0.09516258