R/Gamma.R

Defines functions dgam rgam

#########################################
## Re-parameterized Gamma distribution ##
#########################################

dgam <- function(x,mu,nu,log=FALSE){
  dgamma(x, shape=nu, scale = mu/nu, log = log)
}

rgam <- function(x,mu,nu){
  rgamma(x, shape=nu, scale = mu/nu)
}

Try the flexCWM package in your browser

Any scripts or data that you put into this service are public.

flexCWM documentation built on March 31, 2020, 5:22 p.m.