View source: R/rate_conversion.R
rate_to_prob | R Documentation |
rate_to_prob
convert a rate to a probability.
rate_to_prob(r, t = 1)
r |
rate |
t |
time/ frequency |
a scalar or vector with probabilities
# Annual rate to monthly probability
r_year <- 0.3
r_month <- rate_to_prob(r = r_year, t = 1/12)
r_month
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.