Internal helper that produces a f_selected column by applying two steps:
Filter — when
use_maturity = TRUE, development links that precede the maturity point are excluded (f_selectedset toNA).Fill —
NAvalues inf_selectedare forward-filled using LOCF, so that every link used in projection has a finite factor.
Arguments
- ata_summary
A
data.tableof class"ATASummary"fromsummary.ATA().- maturity
A
data.tablefromfind_ata_maturity(), orNULLwhenuse_maturity = FALSE.- use_maturity
Logical; if
TRUE, apply the maturity filter. WhenFALSE,maturityis ignored entirely.- grp_var
Character vector of grouping variable names.
- na_method
One of
"locf"or"none".
