R/rtau.R

# sampling function of the truncated gamma with shape=1/2, 
# scale=8*lambda2/lambda1^2, and domain=(1,infinity)
rtau <- function(n, lambda1, lambda2) {
  u <- runif(n)
  tau <- qtau(u, lambda1, lambda2)
  return(tau)
}

Try the gren package in your browser

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

gren documentation built on May 1, 2019, 7:31 p.m.