% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/influence.R
\name{wf_influence}
\alias{wf_influence}
\title{Diagnose high-influence calibrated units}
\usage{
wf_influence(w, target = NULL, sample = NULL, id = NULL, top = 20)
}
\arguments{
\item{w}{A \code{wf_weights} object with unit IDs.}

\item{target}{Optional \code{wf_target} for margin-share diagnostics.}

\item{sample}{Optional sample data frame aligned by \code{id}.}

\item{id}{Sample ID column required when \code{sample} and \code{target} are supplied.}

\item{top}{Number of highest-ratio units for which leave-one-out design
effects are computed and printed.}
}
\value{
A \code{wf_influence} object with a \verb{$table} data frame.
}
\description{
Reports the units that contribute most to weight instability. The core
diagnostics are per-unit weight ratio to the group mean, share of the
group's squared-weight mass, and leave-one-out design effect for the top
units. When \code{sample} and \code{target} are supplied, WFC also reports the largest
share of any target margin represented by that unit.
}
