R/F.GEV.R

F.GEV <- function (x, xi, alfa, k) 
{
  if (k == 0) {
    y <- (x - xi)/alfa
  }
  else {
    y <- -k^(-1) * log(1 - k * (x - xi)/alfa)
  }
  F <- exp(-exp(-y))
  return(F)
}

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.