R/I_shashQf.R

Defines functions .shashQf

###
# Quantile function of shash distribution
.shashQf <- function(p, param) {
  
  mu <- param[1]
  sig <- exp(param[2])
  eps <- param[3]
  del <- exp(param[4])
  
  return( mu + (del * sig) * sinh((1/del) * asinh(qnorm(p)) + (eps/del)) )
  
}

Try the qgam package in your browser

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

qgam documentation built on Nov. 23, 2021, 1:07 a.m.