prob2rate: Convert Probability to Rate

View source: R/rate_prob_functions.R

prob2rateR Documentation

Convert Probability to Rate

Description

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

Usage

prob2rate(prob)

Arguments

prob

A numeric value representing the probability.

Value

A numeric value representing the rate.

Examples

prob <- 0.1
rate <- prob2rate(prob)
print(rate)

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