% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simplexreg_influence.R
\name{gleverage}
\alias{gleverage}
\alias{gleverage.simplexregression}
\title{Generalized Leverage Values for Simplex Regression Models}
\usage{
gleverage(model)

\method{gleverage}{simplexregression}(model)
}
\arguments{
\item{model}{An object of class \code{simplexregression}.}
}
\value{
A numeric vector of generalized leverage values.
}
\description{
Compute the generalized leverage values for simplex regression
models with parametric or fixed mean link function.
}
\details{
\code{gleverage} computing generalized leverage values as suggested by Wei, Hu,
and Fung (1998). Generalized leverage extends the concept of hat values to account for both
mean and dispersion parameters. High leverage values indicate observations
that have potentially large influence on parameter estimates.
}
\examples{
data(ReadingSkills, package = "SimplexRegression")
fit <- simplexreg(accuracy ~ dyslexia * iq | dyslexia + iq + I(iq^2),
                 data = ReadingSkills)

# Compute generalized leverage
glev <- gleverage(fit)

# Plot leverage values
plot(glev, type = "h", ylab = "Generalized leverage",
     xlab = "Observation index")
abline(h = 2 * mean(glev), lty = 2, col = "red")

}
\references{
Justino, M. E. C. and Cribari-Neto, F. (2026).
Simplex regression with a flexible logit link: Inference and application
to cross-country impunity data.
\emph{Applied Mathematical Modelling}, \bold{154}, 116713. \doi{10.1016/j.apm.2025.116713}

Wei, B. C., Hu, Y. Q., and Fung, W. K. (1998).
Generalized Leverage and Its Applications.
\emph{Scandinavian Journal of Statistics}, \bold{25}, 25–37.
}
\seealso{
\code{\link{hatvalues.simplexregression}},
\code{\link{cooks.distance.simplexregression}},
\code{\link{local.influence}}.
}
