Estimate incremental loss intensities \(g_k\) from a "Triangle"
object and return an "EDFit" object that bundles factor summaries,
selected intensities, and a cell-level projection of cumulative loss
and premium ($full).
Returns g_sel, sigma2, and factor variance
\(\mathrm{Var}(\hat{g}_k)\) (column g_var) in $selected.
The $full projection table holds cumulative loss / premium
projections and their standard errors, computed directly from the
Mack-style ED recursion (see .ed_proj, .ed_proc_var,
.ed_param_var). To validate an ED projection via backtest(),
call backtest(tri, target = "ratio", loss_method = "ed").
Arguments
- x
A
"Triangle"object.- loss
Cumulative loss variable. Default
"loss". Forwarded toas_link()and to downstream workers.- exposure
Cumulative exposure-base variable (the loss-ratio denominator, typically premium). Default
"premium". Forwarded toas_link()and to downstream workers.- method
Estimation method. Currently only
"mack"is supported.- alpha
Numeric scalar controlling the variance structure. Default is
1.- na_method
Method used to fill
NAvalues ing_sel. One of"zero"(default, setNAto 0 meaning no further development) or"locf"or"none".- 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 are used for estimation. Default isNULL.- regime
Optional regime specification for cohort cutoff. Accepts:
NULL(default – no filter), a"Regime"object (fromdetect_regime()), the string"auto"(internaldetect_regime(tri, loss = "ratio")call), or a functionfunction(tri) -> Regime. Resolved internally via.resolve_regime(). When supplied, cohorts withcohort < change_dateare excluded from estimation. Default isNULL.- bootstrap
Optional bootstrap specification. Accepts
NULL(default, analytical Mack SE only), aBootstrapTriangleobject produced bybootstrap()(replayed for SE / CI), or the string"auto"to run an internal nonparametric bootstrap at fit time.- B
Integer number of bootstrap replicates when
bootstrap = "auto". Default999L.- seed
Optional integer seed for reproducible bootstrap draws. Default
NULL.- conf_level
Numeric in
(0, 1). Confidence level used for bootstrap-derived CI columns. Default0.95.- ...
Additional arguments passed to
summary.Link().
Value
An object of class "EDFit" (a named list) with components:
factorEDSummaryof fitted intensities per development link.selecteddata.tableof selectedg_sel,sigma2, andg_var.fulldata.tableof per-cell cumulative loss / premium projection plus role-prefixed SE / CV columns (loss_proj,incr_loss_proj,premium_proj,incr_premium_proj,loss_proc_se2,loss_param_se2,loss_total_se2,loss_proc_se,loss_param_se,loss_total_se,loss_total_cv). Available cells include both observed and projected;is_observedflags observed cells.linkLinkobject used for factor estimation.
