The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
factor_analysis() is now the primary function for
univariate/factor-level portfolio analysis. It returns objects with
primary class "factor_analysis" while retaining
"univariate" for compatibility.plot_severity_distribution() was added for exploratory
severity diagnostics by category. It shows individual claim observations
with mean and median markers, optional direct labels, and optional
firebrick highlighting for claims above a user-supplied threshold.univariate() is deprecated and remains available as a
compatibility wrapper. The old NSE interface is still supported through
the deprecated wrapper.factor_analysis() now validates metric columns and
grouping variables early, with clearer error messages for missing
columns.NA_real_ instead of Inf or
NaN.autoplot.factor_analysis() is the primary plot method.
The deprecated show_plots argument has been replaced by
metrics.outlier_histogram() has clearer argument names:
lower, upper, density,
bar_fill, bar_color, tail_fill,
tail_color, and density_color.left,
right, line, fill,
color, and fill_outliers.histbin() is deprecated and remains available as a
compatibility wrapper.risk_factor_gam() is the primary spelling for fitting
GAMs to continuous risk factors. riskfactor_gam() and
fit_gam() remain available for compatibility, with
fit_gam() deprecated.risk_factor_gam() returns objects with primary class
"risk_factor_gam"; compatibility classes are retained for
older code.model = "pure_premium" replaces the older
model = "burning" wording. The old value remains supported
with a lifecycle warning.derive_tariff_segments() replaces
construct_tariff_classes() as the primary API for deriving
tariff segments from a fitted risk-factor GAM.derive_tariff_segments() returns objects with primary
class "tariff_segments".add_tariff_segments() can add derived tariff segments
back to a portfolio.construct_tariff_classes() remains available as a
deprecated compatibility wrapper.rating_table() is the primary API for interpreting
fitted GLM coefficients in tariff-table form.
rating_factors() and rating_factors2() are
deprecated wrappers.rating_table() now returns objects with primary class
"rating_table" while retaining the legacy
"riskfactor" class for compatibility.exposure_output replaces the older
exposure_name argument.significance replaces the older
signif_stars argument.add_observed_experience() was added to attach
factor_analysis() output to a rating_table()
object before plotting. This replaces the earlier direct
univariate_* arguments in
autoplot.rating_table().autoplot.rating_table() now plots attached observed
experience from add_observed_experience() and uses cleaner,
package-consistent plot styling, including a subtle secondary exposure
axis.add_prediction() now has clearer naming arguments:
predictions, prefix, confidence,
and interval_names.var and conf_int are deprecated in favour
of predictions and confidence._lower and
_upper suffixes by default.alpha, confidence settings,
duplicate output names, name collisions with existing columns, missing
models and non-GLM inputs.extract_model_data() replaces model_data()
as the primary API for extracting model data from fitted models.model_data() is deprecated and remains available as a
wrapper.rating_grid() now uses base R internally and returns a
regular data.frame.rating_grid(glm) groups by model terms as expected.prepare_refinement() |> add_*() |> refit().assess_excess_threshold(),
calculate_excess_loss(),
allocate_excess_loss() and
apply_excess_loading().assess_excess_threshold() compares candidate large-loss
thresholds and shows the impact on excess loss, capped loss and pure
premium.calculate_excess_loss() now performs only the
deterministic historical decomposition into capped and excess claim
amounts.allocate_excess_loss() handles allocation and bootstrap
uncertainty modelling. It supports observed or bootstrap excess burdens,
portfolio, risk-factor and partial allocation, and optional severity
noise in the bootstrap.allocate_excess_loss() now uses clearer allocation
argument names: allocation_weight,
risk_factor, allocation_subset,
allocation, n_bootstrap,
bootstrap_seed and preserve_total_excess.allocate_excess_loss() now
uses the transparent formula
Z = n / (n + credibility_threshold) with
credibility_basis = "claims", "excess_claims"
or "allocation_weight".allocate_excess_loss() now uses
preserve_total_excess = TRUE by default so that partial
allocation redistributes the selected excess burden without changing the
total allocated excess loss.apply_excess_loading() adds the allocated excess
loading to pricing data and returns base_premium,
excess_loading and loaded_premium.apply_excess_loading() now treats premium amounts as
the default workflow and keeps the distinction between absolute
allocated_excess_loss and per-weight
allocated_loading explicit.add_smoothing() now uses model_variable
and source_variable as the primary argument names.edit_smoothing() now uses clearer in-object editing
arguments for adjusting smoothing settings without supplying an external
data frame.add_restriction() can now accept a partial restriction
data frame. Missing levels are automatically filled with the already
fitted GLM relativities, so users can adjust only selected levels.add_relativities() now uses model_variable
and split_variable.relativities() replaces
relativities_list() as the helper for building relativity
specifications.restrict_coef(), smooth_coef() and
refit_glm() remain deprecated compatibility wrappers and
now link clearly to add_restriction(),
add_smoothing() and refit().autoplot.rating_refinement() no longer carries an
experimental badge and uses the package plot theme.set_reference_level() replaces
biggest_reference() as the primary helper for choosing
factor reference levels.method = "largest_weight".level argument was added so a specific
reference level can be selected explicitly.biggest_reference() remains available as a deprecated
compatibility wrapper.split_periods_to_months(),
merge_date_ranges() and active_rows_by_date()
now avoid mutating caller-visible input data.active_rows_by_date() replaces
rows_per_date() as the primary API for matching event
dates, such as claim dates, to active portfolio rows.period_to_months(), rows_per_date() and
reduce() remain available as deprecated compatibility
wrappers.nomatch validation and mult validation have
been improved.active_rows_by_date() have been resolved.bootstrap_performance() now has an explicit
metric = "rmse" argument.sampling = c("bootstrap", "split") was added to
distinguish bootstrap out-of-bag evaluation from split validation.n and frac remain
supported as aliases for n_resamples and
sample_fraction.autoplot.bootstrap_performance() now uses a
package-consistent visual style: subtle grey histogram, transparent blue
density, orange original-model reference line, subtle confidence
interval lines and no gap between the bars and x-axis.bootstrap_rmse() remains available as a deprecated
compatibility wrapper and returned objects retain class
"bootstrap_rmse" for older code.check_overdispersion() now validates non-GLM input,
checks for Poisson models and fails clearly when residual degrees of
freedom are not positive.print.overdispersion() now bases its conclusion on the
original p-value rather than a rounded display value.check_residuals() now validates inputs, uses all scaled
residuals for the KS test, handles empty residual vectors clearly and
documents the DHARMa-based residual workflow for actuarial users.autoplot.check_residuals() now has a controllable
max_points argument and uses ASCII messages and the package
plot theme.fit_truncated_severity() replaces
fit_truncated_dist() as the primary API for fitting
distributions to truncated claim severities."truncated_severity"
while compatibility with "truncated_dist" is retained.fit_truncated_dist() remains available as a deprecated
compatibility wrapper.rlnormt() and
rgammat() now validate sample size, distribution
parameters, finite intervals and positive truncation mass.ecdf_geom,
x_label, y_label, show_title,
digits and truncation_digits, with old names
supported for compatibility.fisher_classify() and fisher() are
deprecated because Fisher-Jenks classification is a general-purpose
grouping method and is not directly tied to the insurance-rating
workflow.classInt moved from Imports to
Suggests.rating_factors() now always returns correct output when
column with exposure in data is not named exposureintercept_only in update_glm() is added to
apply the manual changes and refit the intercept, ensuring that the
changes have no impact on the other variables.smoothing in smooth_coef() is added to
choose smoothing specificationbootstrap_rmse() now uses
after_stat(density) instead of the deprecated dot-dot
notationcustom_theme in autoplot.univariate() is
added to customize the themeautoplot.univariate() now generates a plot even when
there are missing values in the rowsrating_factors() now always returns the correct
coefficients when used on a ‘refitsmooth’ or ‘refitrestricted’ class of
GLM.update_glm() now always returns the correct interval in
case the function is used in combination with
smooth_coef()rotate_angle in autoplot.univariate() is
added to rotate x-labelsunivariate() now accepts external vectors for
x; vec_ext() must be usedsmooth_coef() now gives correct results for intervals
with scientific notationreduce() now returns no errors anymore for columns with
dates in POSIXt formatrefit_glm() is renamed to
update_glm()construct_model_points() and model_data()
are added to create model pointsshow_total in autoplot.univariate() is
added to add line for total of groups in case by is used in
univariate(); total_color can be used to
change the color of the line, and total_name is added to
change the name of the legend for the linerating_factors() now accepts GLMs with an intercept
onlyfit_truncated_dist() is added to fit the original
distribution (gamma, lognormal) from truncated severity datajoin_to_nearest() now returns NA in case NA is used as
inputsmooth_coef() now returns an error message when
intervals are not obtained by cut()get_data() is added to return the data used in
refit_glm()summary.reduce() now gives correct aggregation for
periods “months” and “quarters”rows_per_date() is added to determine active portfolio
for a certain datesmooth_coef() and restrict_coef() are
added for model refinementhistbin() now uses darkblue as default fill colorsummary.reduce(), name can be used to
change the name of the new column in the output.MTPL now contains extra columns for
power, bm, and zip.insight are renamed, therefore
insight::format_table() is replaced with
insight::export_table().fit_gam() for pure premium is now using average premium
for each x calculated as sum(pure_premium * exposure) / sum(exposure)
instead of sum(pure_premium) / sum(exposure) (#2).histbin() is added to create histograms with
outliersreduce now returns a data.frame as outputcheck_normality() is now depreciated; use
check_residuals() instead to detect overall deviations from
the expected distributionrating_factors() now shows significance stars for
p-valuesperiod_to_months() arithmetic operations with dates are
rewritten; much fasterunivariate() now has argument by to
determine summary statistics for different subgroupsunivariate_all() and autoplot.univ_all()
are now depreciated; use univariate() and
autoplot.univariate() insteadcheck_overdispersion(), check_normality(),
model_performance(), bootstrap_rmse(), and
add_prediction() are added to test model quality and return
performance metricsreduce() is added to reduce an insurance portfolio by
merging redundant date rangeslabel_width in autoplot() is added to wrap
long labels in multiple linessort_manual in autoplot() is added to sort
risk factors into an own orderingautoplot() now works without manually loading package
ggplot2 and patchwork firstrating_factors() now returns an object of class
riskfactorautoplot.riskfactor() is added to create the
corresponding plots to the output given by
rating_factors()autoplot.univ_all() now gives correct labels on the
x-axis when ncol > 1.construct_tariff_classes() and fit_gam()
now only returns tariff classes and fitted gam respectively; other items
are stored as attributes.univariate_frequency(),
univariate_average_severity(),
univariate_risk_premium(),
univariate_loss_ratio(),
univariate_average_premium(),
univariate_exposure(), and univariate_all()
are added to perform an univariate analysis on an insurance
portfolio.autoplot() creates the corresponding plots to the
summary statistics calculated by univariate_*.construct_tariff_classes() is now split in
fit_gam() and construct_tariff_classes().period_to_months() is added to split rows with a time
period longer than one month to multiple rows with a time period of
exactly one month each.construct_tariff_classes(), model now
also accepts ‘severity’ as specification.These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.