R/invF.GEV.R

### define inverse GEV distribution
### originally defined in R-package homtest
invF.GEV <- function (F, xi, alfa, k) 
{
  if (k == 0) {
    x <- xi - alfa * log(-log(F))
  }
  else {
    x <- xi + alfa * (1 - (-log(F))^k)/k
  }
  return(x)
}

Try the PRSim package in your browser

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

PRSim documentation built on Sept. 19, 2023, 5:07 p.m.