% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/covariates.R
\name{cov_dyad_static}
\alias{cov_dyad_static}
\title{Create a static dyad-level covariate}
\usage{
cov_dyad_static(name, data, warn_missing = TRUE)
}
\arguments{
\item{name}{Character scalar. Column name added to the risk set.}

\item{data}{Data frame with columns \code{sender} (integer-coercible),
\code{receiver} (integer-coercible), and \code{value} (numeric). Need not be a
complete cross-product; unmatched dyads receive 0 (with optional warning).}

\item{warn_missing}{Logical.}
}
\value{
An object of class \code{c("cov_dyad_static", "rem_cov")}.
}
\description{
Adds one column to each risk-set row based on the (sender, receiver) pair.
}
\examples{
alliance <- data.frame(
  sender = c(1L, 2L), receiver = c(2L, 1L), value = c(1, 1)
)
cov <- cov_dyad_static("Alliance", alliance)
}
