% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transformation.R
\name{transform_zcta_to_zip}
\alias{transform_zcta_to_zip}
\title{Transform ZCTA data to ZIP level}
\usage{
transform_zcta_to_zip(baseline_data, zip_zcta_map, value_col = "estimate")
}
\arguments{
\item{baseline_data}{Data frame with columns: zcta, and a value column}

\item{zip_zcta_map}{Data frame with columns: zcta, zip}

\item{value_col}{Name of the value column in baseline_data (default: "estimate")}
}
\value{
Data frame with columns: zip, value (allocated to ZIP level)
}
\description{
Performs the first hop: ZCTA → ZIP using association-based allocation.
This is where the first swap occurs: observed data → imputed data.
}
\examples{
baseline <- data.frame(zcta = c("00001", "00002"), estimate = c(1000, 2000))
zip_zcta <- data.frame(zcta = c("00001", "00002"), zip = c("00010", "00010"))
result <- transform_zcta_to_zip(baseline, zip_zcta, value_col = "estimate")
}
