R/cdfggamma.R

Defines functions cdfggamma

Documented in cdfggamma

#' @title Cumulative distribution function of the generalized gamma distribution
#'
#' @param par parameter vector of the generalized gamma distribution.
#' First parameter is the dispersion, second is the location parameter and third is the family parameter.
#' @param x vector of observations or single value
#'
#' @return return the value of the pdf of the generalized gamma distribution
#' @export
#' @importFrom rmutil dggamma pggamma
#' @references Stacy, E. W. (1962). A generalization of the gamma distribution. The Annals of mathematical statistics, 1187-1192.
#' @examples
#' pdfggamma(c(2,5,3),3)
#'
cdfggamma=function(par,x)
{
  alpha=par[1]
  beta=par[2]
  c=par[3]

  g=dggamma(x,alpha,beta,c)
  G=pggamma(x,alpha,beta,c)
  return(G)
}

Try the ERPeq package in your browser

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

ERPeq documentation built on July 9, 2023, 5:27 p.m.