Learn R Programming

twig (version 1.0.0.0)

rate2prob: Convert Rate to Probability

Description

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

Usage

rate2prob(rate)

Value

A numeric value representing the probability.

Arguments

rate

A numeric value representing the rate.

Examples

Run this code
rate <- 0.1
prob <- rate2prob(rate)
print(prob)

Run the code above in your browser using DataLab