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