rate2prob: Convert Rate to Probability

View source: R/rate_prob_functions.R

rate2probR Documentation

Convert Rate to Probability

Description

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)

twig documentation built on April 12, 2025, 2:08 a.m.