Learn R Programming

dcce (version 0.4.2)

.amg_attach_cdp_level: Attach the cumulative CDP to a panel as a new 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 \(\sum_{s \le t} \hat\mu_s\).

Usage

.amg_attach_cdp_level(panel, cdp_df)

Value

The panel augmented with a cdp_level column.

Arguments

panel

A panel data.frame.

cdp_df

Two-column data.frame from .amg_common_dynamic_process().