% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/blend.R
\name{wf_blend}
\alias{wf_blend}
\title{Blend online and offline calibrated estimates}
\usage{
wf_blend(
  online,
  offline,
  by_cell,
  lambda = c("neff", "inverse_variance", "fixed"),
  lambda_fixed = NULL,
  outcome = NULL,
  level = c("cell", "group"),
  trim_lambda = c(0.05, 0.95),
  sensitivity = TRUE
)
}
\arguments{
\item{online}{Online-source \code{wf_weights}.}

\item{offline}{Offline-source \code{wf_weights}.}

\item{by_cell}{Character vector of cell columns.}

\item{lambda}{Lambda strategy: \code{"neff"}, \code{"inverse_variance"}, or \code{"fixed"}.}

\item{lambda_fixed}{Fixed lambda scalar or key table when \code{lambda = "fixed"}.}

\item{outcome}{Optional numeric outcome column.}

\item{level}{Lambda level: \code{"cell"} or \code{"group"}.}

\item{trim_lambda}{Two bounds used to clamp data-driven lambdas.}

\item{sensitivity}{Whether to compute a global-lambda sensitivity sweep.}
}
\value{
A \code{wf_blend_result} object.
}
\description{
Combines two \code{wf_weights} sources at the estimator level. Each source is
estimated within each fusion cell first; the source estimates are then
combined using the effective lambda recorded in the result.
}
