Compatibility wrapper around panel990::panel_smooth(). Fiscal retains
the PZ, PC, and ALL field shortcuts.
Usage
panel_smooth(
df,
vars = "PZ",
window = 3,
time = "TAX_YEAR",
id = "EIN2",
weights = "equal",
verbose = TRUE,
engine = "memory",
align = "center"
)Arguments
- df
Panel data frame.
- vars
"PZ","PC","ALL", or numeric field names.- window
Rolling-window width: odd for
align = "center", any positive integer otherwise.- time
Panel-time column.
- id
Panel-ID column.
- weights
Weighting mode.
- verbose
Print progress.
- engine
Must currently be
"memory".- align
Window alignment, passed to
panel990::panel_smooth():"center"(default) averages the rows centred on each year;"right"is a trailing window of calendar yearst - (window - 1)throughtthat never uses future values or bridges filing gaps;"left"is the forward-looking mirror.