% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gpd.R
\name{pgeneralized_pareto}
\alias{pgeneralized_pareto}
\title{Distribution function for the generalized Pareto distribution}
\usage{
pgeneralized_pareto(
  q,
  mu = 0,
  sigma = 1,
  k = 0,
  lower.tail = TRUE,
  log.p = FALSE
)
}
\arguments{
\item{q}{Numeric vector of quantiles.}

\item{mu}{Location parameter.}

\item{sigma}{Scale parameter (must be positive).}

\item{k}{Shape parameter.}

\item{lower.tail}{Logical; if \code{TRUE} (default), probabilities are \code{P[X <= x]}.}

\item{log.p}{Logical; if \code{TRUE}, probabilities are returned as \code{log(p)}.}
}
\value{
A numeric vector of probabilities.
}
\description{
Computes the cumulative distribution function (CDF) for a generalized
Pareto distribution with location \code{mu}, scale \code{sigma}, and shape \code{k}.
}
\examples{
pgeneralized_pareto(q = c(1, 2, 5), mu = 0, sigma = 1, k = 0.2)
}
\keyword{internal}
