View source: R/rate_conversion.R
prob_to_rate | R Documentation |
prob_to_rate
checks if a probability is between 0 and 1 and convert it to a rate.
prob_to_rate(p, t = 1)
p |
probability |
t |
time/frequency |
a scalar or vector with rates
# Annual probability to monthly rate
p_year <- 0.3
r_month <- prob_to_rate(p = p_year, t = 1/12)
r_month
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.