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

\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 given as \code{log(p)}.}
}
\value{
A numeric vector of quantiles.
}
\description{
Computes the quantile function for a generalized Pareto distribution
with location \code{mu}, scale \code{sigma}, and shape \code{k}.
}
\examples{
qgeneralized_pareto(p = c(0.1, 0.5, 0.9), mu = 0, sigma = 1, k = 0.2)
}
\keyword{internal}
