Each resample contains the same number of portfolio rows as the original
estimation data and is drawn with replacement. The function recovers these
data from object; a separate data argument is deliberately not required.
Rows omitted during the original model fit are excluded so the resampling
population remains aligned with the fitted GLM.
Original factor levels, the model formula, offsets and model weights are
retained during refitting. A factor level may nevertheless be absent from a
particular bootstrap sample. Its coefficient can then be non-estimable and
is stored as NA for that replicate.
A failed or non-converged GLM refit does not stop the procedure. The failed
replicate is recorded and the function continues. After resampling, an
informative message reports how many requested refits produced usable model
objects. summary.bootstrap_coefficients() reports the number of finite
estimates separately for each coefficient.
Actuarial interpretation
The bootstrap distribution can identify tariff effects that are sensitive to
the particular portfolio sample. Wide intervals, material bootstrap bias or
a low number of estimable replicates often indicate sparse levels, correlated
model terms or limited claim information. These diagnostics should be
considered alongside exposure, claim counts, coefficient interpretation and
stability across calendar periods.
The row bootstrap represents sampling variation in the observed estimation
portfolio. It does not include future trend, parameter uncertainty caused by
model selection, structural changes in portfolio composition or dependence
between repeated records for the same policy. Where such dependence is
material, a cluster-level bootstrap would require a different resampling
design.