% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/influence.R
\name{influence.brma}
\alias{influence.brma}
\title{Measure Influence for brma Objects}
\usage{
\method{influence}{brma}(model, ...)
}
\arguments{
\item{model}{a fitted brma object.}

\item{...}{additional arguments (currently ignored).}
}
\value{
An object of class \code{"infl.brma"}, which corresponds to the
structure of \code{metafor::influence} objects. It is a list containing:
\item{inf}{A data frame with columns: \code{rstudent}, \code{dffits},
\code{cook.d}, \code{cov.r}, \code{tau.del}, and \code{hat}, where available.
The \code{tau.del} column is the PSIS leave-one-out posterior mean of the
aggregate heterogeneity. For scale models, aggregation is over the remaining
scale-model rows after each deletion.}
\item{dfbs}{A data frame with DFBETAS values for the model coefficients.}
Undefined determinant- or variance-standardized diagnostics are reported as
\code{NaN} and printed with an explanatory note.
}
\description{
Computes DFFITS, Cook's distance, COVRATIO, and other
influence diagnostics for a fitted brma object.
}
\examples{
\dontrun{
if (requireNamespace("metadat", quietly = TRUE)) {
  data(dat.lehmann2018, package = "metadat")
  fit <- brma(
    yi      = yi,
    vi      = vi,
    data    = dat.lehmann2018,
    measure = "SMD",
    seed    = 1,
    silent  = TRUE
  )
  fit <- add_loo(fit)

  inf <- influence(fit)
  print(inf)
}
}

}
\seealso{
\code{\link{dffits.brma}}, \code{\link{cooks.distance.brma}},
\code{\link{covratio.brma}}, \code{\link{dfbetas.brma}}, \code{\link{hatvalues.brma}}
}
