A collection of functions to handle tasks commonly used in developing decision models.
ProbToRate converts a cumulative probability over a given time frame to a rate.
RateToProb converts a rate to a cumulative probability over a given time frame.
ProbToOdds converts a probability to an odds.
OddsToProb converts an odds to a probability.
estBetaParam estimates parameters for a beta distribution given a mean and standard deviation
using method of moments.
estGammaParam estimates parameters for a gamma distribution given a mean and standard deviation
using method of moments.
estLogNormParam estimates parameters for a lognormal distribution given one of:
mean and standard deviation, or
mean and lower/upper bounds of a 95% confidence interval.
GetDiscount returns an instantaneous discount rate for a vector of time points.
roundToMult returns a vector of values rounded to the nearest multiple specified by the user.
convertFilepath converts backslashes in a Windows filepath to a character string
containng forward slashes.
lerp is a linear interpolation function that only uses two points on a curve. May be faster than the
base R function for decision models.
fieller returns Fieller's confidence interval for a ratio of two vectors.
confintVector returns a confidence interval of a vector using a normal distribution.
Austin Nam (austin.nam@mail.utoronto.ca)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.