Estimate age-to-age (ata) development factors from an object of class
"Link" and return a unified "ATAFit" object that bundles:
Summary statistics and WLS estimates (
summary) fromsummary.Link()withmodel = "ata".Selected factors (
selected) ready for chain ladder projection, after optional maturity filtering and LOCF fill.Maturity diagnostics (
maturity) fromdetect_maturity().
Arguments
- x
An object of class
"Link", typically produced byas_link().- loss
Cumulative metric for the link factor. Default
"loss". Forwarded toas_link().- weight
Optional WLS weight variable. Forwarded to
as_link().- alpha
Numeric scalar controlling the variance structure. Default is
1.- na_method
Method used to fill
NAvalues inf_sel. One of"locf"(default) or"none". Passed to.filter_ata().- sigma_method
Method used to extrapolate
sigmafor links where it cannot be estimated. One of"locf"(default),"min_last2","loglinear","mack", or"none"."mack"applies the Mack (1993, Appendix B) tail estimator to the last unestimated link only, falling back to LOCF for any earlier ones with a warning."none"performs no extrapolation;sigmastaysNAand downstream variance terms drop those links via finite-value guards. Passed to.extrapolate_sigma_ata().- recent
Optional positive integer. When supplied, only the most recent
recentperiods in theLinktriangle are used for factor estimation. Applied before maturity filtering. Default isNULL(use all periods).- regime
Optional regime specification for cohort cutoff. Accepts:
NULL(default – no filter), aRegimeobject (fromdetect_regime()orregime_at()), the string"auto"(internaldetect_regime(tri, loss = "ratio")call), or a functionfunction(tri) -> Regimefor deferred custom-config detection. When supplied, cohorts strictly before the resolved change date are excluded from estimation.- maturity
Optional maturity specification for filtering ata links. Accepts four input types:
NULL(default)No maturity filter.
MaturityobjectUse as-is. Typically built via
detect_maturity()ormaturity_at()."auto"Detect maturity internally via
detect_maturity(x)on the input triangle.- Function / closure
A user-supplied function taking the triangle and returning a
Maturityobject (e.g. frommaturity_spec()) for deferred custom-config detection.
When the supplied
Maturitycarriesattr(., "groups")that differs from the Triangle's grouping, the Triangle is rebucketed to the maturity partition before link construction.- ...
Additional arguments passed to
summary.Link().
Value
An object of class "ATAFit" (a named list) containing:
callThe matched call.
linkThe input
"Link"object.summary"ATASummary"object fromsummary.Link().selecteddata.tableof factors ready for projection, includingf_selandsigma2.maturityResolved
Maturityobject used for filtering, orNULLwhen maturity filtering was not applied.alphaValue of
alphaused.na_methodNA fill method used.
sigma_methodSigma extrapolation method used.
recentNumber of recent periods used, or
NULL.regimeResolved
Regimeobject, orNULL.use_maturityLogical; whether maturity filtering was applied.
