% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/counting.R
\name{author_weights}
\alias{author_weights}
\title{Compute positional author weights for a single paper}
\usage{
author_weights(
  n,
  counting = "fractional",
  position_weights = c(1, 0.8, 0.6, 0.4),
  first_last_weight = 2
)
}
\arguments{
\item{n}{Integer. Number of authors.}

\item{counting}{Character. Counting method.}

\item{position_weights}{Numeric vector. Custom weights for
\code{counting = "position_weighted"}. Default \code{c(1, 0.8, 0.6, 0.4)}.}

\item{first_last_weight}{Numeric. Multiplier for first/last authors
when \code{counting = "first_last"}. Default 2.}
}
\value{
Numeric vector of length \code{n}, summing to 1.
}
\description{
Given the number of authors and their positions, returns a weight vector
for positional counting methods. All methods normalize weights to sum to 1
per paper. Position-independent methods (fractional, paper, strength) are
handled by \code{\link[=apply_counting]{apply_counting()}} instead.
}
\keyword{internal}
