% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/est_amg.R
\name{.amg_attach_cdp_level}
\alias{.amg_attach_cdp_level}
\title{Attach the cumulative CDP to a panel as a new column}
\usage{
.amg_attach_cdp_level(panel, cdp_df)
}
\arguments{
\item{panel}{A panel data.frame.}

\item{cdp_df}{Two-column data.frame from
\code{.amg_common_dynamic_process()}.}
}
\value{
The panel augmented with a \code{cdp_level} column.
}
\description{
Merges the CDP into the panel by time period (units before the first
differenced period receive NA), then cumulates within each unit to
recover the level-form process \eqn{\sum_{s \le t} \hat\mu_s}.
}
\keyword{internal}
