#' @export dtgamma
dtgamma <- function(x, shape, rate = 1, a = 0, b = Inf, ...) {
truncdist::dtrunc(x, spec = 'gamma', a = a, b = b, shape = shape, rate = rate, ...)
}
#' @export ptgamma
ptgamma <- function(q, shape, rate = 1, a = 0, b = Inf, ...) {
truncdist::ptrunc(q, spec = 'gamma', a = a, b = b, shape = shape, rate = rate, ...)
}
#' @export rtgamma
rtgamma <- function(n, shape, rate = 1, a = 0, b = Inf, ...) {
truncdist::rtrunc(n, spec = 'gamma', a = a, b = b, shape = shape, rate = rate, ...)
}
#' @export qtgamma
qtgamma <- function(p, shape, rate = 1, a = 0, b = Inf, ...) {
truncdist::qtrunc(p, spec = 'gamma', a = a, b = b, shape = shape, rate = rate, ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.