insurancerating 0.7.3 to 0.8.2
CRANRecord of 0.7.3Record of 0.8.2Both records side by side
- 0.7.3 and 0.8.2
- between them
- other releases
- daily mean, in 30-day steps
- after this copy’s series ends on 26 Oct 2026
- Time between
- 845 days4 releases between
- Advisories, method
Method
Security advisories
Advisories come from the R Consortium advisory database, a community record of security problems in R packages, as OSV publishes it.
- The copy
- The record is read once a day. The data is published under the Apache License 2.0 and is credited on the advisories list.
- Box under the name
- Under the package's name, a box names any advisory that affects the current release, with its fix or that there is none.
- Ranges
- Advisories state ranges, such as from 0.9.12 up to but not including 1.8.8. Each range is checked against every version CRAN has published, using the version rules R itself uses, so a release that came out after the advisory was written is still caught by its range.
- Not the package
- The rating is for the library flaw itself, not for how exposed the R package is, and it is never added up into a figure for the package.
- None knownfor either release
- Exports, method
- 1 removed40 added
- Dependencies
- 16 changes11 added, 3 removed, 1 bound, 1 moved11 added, 3 removed
- Licence
- SameGPL (>= 2)
- Maintainer
- SameMartin Haringa
Downloads while newest
Method, downloads Method Download figures count requests logged by each distribution channel. They are not counts of installs or of users, because each channel publishes its own totals and this site reads them.Downloads
| Release | Days newest | Days counted | CRAN downloads | Daily mean |
|---|---|---|---|---|
| 0.8.2 1 Sep to 28 Oct 2026, still the newest | 58 | 56 | 1,311 | 23 |
| 0.7.3 9 to 19 May 2024 | 11 | 273 | 25 |
Daily mean while newest, 0.8.2 −5.7% down since 0.7.3
Counted on the CRAN mirror from each release's day to the day before the next release. This copy's daily series ends on 26 Oct 2026, so a span that runs past it is counted to that day and its daily mean covers the days counted. Other channels repackage on their own schedules, so they are not split by release.
Dependencies
Method, dependencies Method Dependent packages are other packages that list this one under Reverse dependencies
Depends, Imports or LinkingTo in their DESCRIPTION file. Those fields list the packages a package needs to install, so dependents break if this one is archived or broken.Suggests install and run without it, and use it for tests, examples or an optional feature. They are counted as Suggested by, never among the dependents, and a package that also lists it under one of the three fields is a dependent and is not counted again.
- added
- removed
- bound or field changed
| Package | Field | 0.7.3 | 0.8.2 | |
|---|---|---|---|---|
| changed | R | Depends | >= 3.3 | >= 4.1.0 |
| changed | classInt | Imports to Suggests | any version | any version |
| removed | colorspace | Imports | any version | – |
| added | DBI | Suggests | – | any version |
| added | dbplyr | Suggests | – | any version |
| added | duckdb | Suggests | – | any version |
| added | ggbeeswarm | Suggests | – | any version |
| added | ggrepel | Suggests | – | any version |
| added | gt | Suggests | – | any version |
| removed | insight | Imports | any version | – |
| added | lifecycle | Imports | – | any version |
| removed | magrittr | Imports | any version | – |
| added | partykit | Imports | – | any version |
| added | rlang | Imports | – | any version |
| added | scam | Imports | – | any version |
| added | tibble | Imports | – | any version |
Side by side
| Measure | 0.7.3 | 0.8.2 | Change |
|---|---|---|---|
| R | >= 3.3 | >= 4.1.0 | changed |
| Imports | 16 packages | 17 packages | +5 −3, 1 bound |
| Suggests | 4 packages | 11 packages | +6, 1 bound |
Exports
added Added (40)
active_rows_by_dateadd_observed_experienceadd_portfolio_experienceadd_rebasingadd_relativitiesadd_restrictionadd_shrinkageadd_smoothingadd_tariff_segmentsassess_excess_thresholdas_gtaudit_refinementbootstrap_coefficientsbootstrap_performancecalibrate_modelderive_tariff_segmentsedit_smoothingextract_model_datafactor_analysisfisher_classifyfit_truncated_severitymerge_date_rangesmerge_date_ranges_dboutlier_histogramplot_severity_distributionpremium_changeprepare_refinementrating_factors2rating_gridrating_grid_dbrating_tableredistribute_excess_lossrefitrelativitiesriskfactor_gamrisk_factor_gamset_reference_levelsplit_levelsplit_periods_to_monthssplit_relativities
removed Removed (1)
%>%
Code
Method, code Method Code metrics come from reading the released source of each package version. The package is never installed, loaded or run.Code metrics
README, vignettes, a NEWS file and the shares read from its help pages. Files kept only in the repository, such as a pkgdown configuration or CI files, are read by the repository scan instead.
| Measure | 0.7.3 | 0.8.2 | Change |
|---|---|---|---|
| Lines of R code | 5,058 | 28,743 | +23,685 up |
| Files | 109 | 183 | +74 up |
| Public exports | 27 | 66 | +39 up |
| Internal functions | 67 | 329 | +262 up |
| Mean complexity | 5.3 | 7.8 | +2.5 up |
| Highest complexity | 49 | 79 | +30 up |
| Download size | 890 KB | 1.0 MB | +162 KB up |
| Source, unpacked | 1.1 MB | 2.7 MB | +1.6 MB up |
1 other figure of the code is the same in both.
Side by side
| Measure | 0.7.3 | 0.8.2 | Change |
|---|---|---|---|
| Lines of R code | 5,058 | 28,743 | +23,685 |
| Lines of compiled code | 0 | 0 | |
| Files | 109 | 183 | +74 |
| Public exports | 27 | 66 | +39 |
| Internal functions | 67 | 329 | +262 |
| Mean complexity | 5.3 | 7.8 | +2.5 |
| Highest complexity | 49 | 79 | +30 |
| Download size | 890 KB | 1.0 MB | +162 KB |
| Source, unpacked | 1.1 MB | 2.7 MB | +1.6 MB |
| Analysed with | rpkg-analyzer 0.5.2 | rpkg-analyzer 0.5.2 |
Tests
Method, tests Method Test coverage is measured by downloading each CRAN package's current source file, installing its dependencies, building it and running its tests under covr.Test coverage
| Measure | 0.7.3 | 0.8.2 | Change |
|---|---|---|---|
| Lines run by tests | Not measured | 80.7% a test file threw an error | |
| Test cases | 28 | 351 | +323 up |
| Lines of tests | 410 | 9,914 | +9,504 up |
| Test lines per line of code | 0.08 | 0.34 | +0.26 up |
| Exports named in tests | 55.6% | 95.5% | +39.9 points up |
Test coverage is measured on each CRAN package's newest release since July 2026.
Side by side
| Measure | 0.7.3 | 0.8.2 | Change |
|---|---|---|---|
| Lines run by tests | Not measured | 80.7%, a test file threw an error | |
| Test cases | 28 | 351 | +323 |
| Lines of tests | 410 | 9,914 | +9,504 |
| Test lines per line of code | 0.08 | 0.34 | +0.26 |
| Exports named in tests | 55.6% | 95.5% | +39.9 points |
Documentation
| Measure | 0.7.3 | 0.8.2 | Change |
|---|---|---|---|
| Exports documented | 96.3% | 100.0% | +3.7 points up |
| Arguments documented | 100.0% | 90.7% | −9.3 points down |
| Return value documented | 96.2% | 98.5% | +2.3 points up |
| Lines of documentation | 2,011 | 8,117 | +6,106 up |
| Lines of guides | 0 | 2,595 | +2,595 up |
Side by side
| Measure | 0.7.3 | 0.8.2 | Change |
|---|---|---|---|
| Exports documented | 96.3% | 100.0% | +3.7 points |
| Arguments documented | 100.0% | 90.7% | −9.3 points |
| Return value documented | 96.2% | 98.5% | +2.3 points |
| Lines of documentation | 2,011 | 8,117 | +6,106 |
| Lines of guides | 0 | 2,595 | +2,595 |
Files changed
- Files changed
- 259over 5 releases
- Lines added
- 65,257
- Lines deleted
- 14,245
Most changed files (12 of 259)
| File | Lines added | Lines deleted |
|---|---|---|
R/model_refinement.R | 6,533 | 1,065 |
R/excess_loss.R | 2,346 | 525 |
tests/testthat/test_model_refinement.R | 2,757 | 57 |
R/model_rating_table.R | 2,204 | 160 |
inst/doc/refinement-workflow.html | 1,769 | 498 |
R/oud_model_refinement.R | 1,666 | 5 |
inst/doc/pricing-workflow-building-blocks.html | 1,265 | 394 |
R/univariate.R | 1,019 | 477 |
inst/doc/refinement-workflow.Rmd | 1,134 | 315 |
vignettes/refinement-workflow.Rmd | 1,134 | 315 |
R/gam_construct_tariff_classes.R | 956 | 381 |
inst/doc/getting-started.html | 1,098 | 195 |
Each release is counted against the release before it, so a line changed twice counts twice.
Release notes
From the NEWS file of 0.8.2. Only the section for the newest release on record is kept.
rating_table()gainsestimate_namefor assigning exact names to fitted coefficient or relativity columns. It accepts one name for one model, a vector in model order, or a named vector for multi-model comparisons;autoplot()andas_gt()retain the custom columns.edit_smoothing()gainsslope_adjustment, usingfromas its anchor, for changing the remaining development of an effective smoothing after a selected anchor. Values before the anchor remain unchanged and the edited curve is continuous at the anchor. The defaultslope_adjustment = 1leaves the smoothing unchanged.calibrate_model()adds a final multiplicative calibration step for refined log-link GLMs. It changes only the overall fitted level, records the applied factor and intercept shift, and remains compatible withrating_table()andadd_prediction().add_restriction()now warns when a newly added numeric interval overlaps the existing interval classification. The message identifies the conflicting levels and explains how a separate replacement variable can be supplied withreplaceswhen the intention is to replace the original classification.autoplot.rating_refinement()gainsshow_segments = FALSEfor inspecting a continuous smoothing curve without displaying the proposed tariff segments.premium_change()interprets the effective smoothing in a refinement using either the existing doubling comparison or a fixed increment supplied withincrement. Current and historical refinement states can be selected withstepsand compared with print andas_gt()methods. The defaultbasis = "curve"evaluates the continuous effective smoothing;basis = "segments"compares the implemented tariff-interval relativities.add_restriction()gainsreplaces, which allows a new fixed tariff factor to explicitly replace an existing standalone model term duringrefit(). The replacement is retained in refinement summaries and audits. The defaultreplaces = NULLpreserves the existing additive behaviour for new factors.rating_grid_db()andmerge_date_ranges_db()add lazy database variants for portfolios that should be reduced before they are imported into R.rating_grid_db()translates grouped counts and sums throughdbplyr, whilemerge_date_ranges_db()implements temporal gaps-and-islands reduction in DuckDB. A new large-portfolio vignette compares local and database workflows and illustrates lazy reduction of portfolios with 10 and 50 million records.rating_grid()andmerge_date_ranges()are now documented together as portfolio-reduction functions. Both use groupeddata.tableoperations internally and return ordinarydata.frameobjects for downstream use.split_periods_to_months()andactive_rows_by_date()are now documented as portfolio time operations. Their calculations use localdata.tableobjects internally, while their public output is always a regulardata.frame.split_periods_to_months()now usesdataas its first argument (dfremains available as a deprecated named argument) and expands periods without a row-wise R loop.active_rows_by_date()replaces the technicalnomatchandmultarguments withunmatchedandmultiple_matches; the old names remain available with deprecation warnings.merge_date_ranges()now usesmerge_gap_days = 1by default, so only overlapping and directly adjacent coverage periods are merged unless a wider administrative gap is selected explicitly. The interval reduction is now performed as a groupeddata.tablecalculation, avoiding row-wise R loops for large portfolios. Empty inputs, nested intervals and aggregation functions without ana.rmargument are handled explicitly. The deprecatedreduce()wrapper retains its historical default for compatibility. The first argument is now nameddata(dfremains available as a deprecated named argument), and the result is a regulardata.framesubclass whiledata.tableremains an internal implementation detail. Together withrating_grid(), the function is documented as part of the portfolio reduction workflow.rating_table()now distinguishes structural and comparative level order. Pure numeric levels and numeric intervals are ordered from low to high, explicitly ordered factors retain their declared level sequence, and nominal factors are ordered from the highest to the lowest fitted effect by default. Numeric and ordinal order are not displaced by the fitted reference level. The newlevel_order_by_risk_factorargument can preserve model order or select alphabetical or estimate-based ordering for individual factors. Risk factors can retain formula order or be sorted alphabetically, and comparisons with several models can select the model that determines the estimate ordering. The resulting order is retained byas_gt()andautoplot().add_rebasing()can rescale the current relativities of a categorical tariff factor so that an explicit reference level equals 1. When no level is supplied, the level with the largest portfolio weight is selected. Rebasing preserves every ratio between factor levels and can be applied after restrictions, shrinkage or sublevel relativities.add_shrinkage()can reduce differences between categorical tariff relativities before refitting. Relativities are blended with a weighted centre on the log scale and rescaled to preserve their weighted arithmetic mean. Explicit GLM weights or a simple exposure offset are detected when possible; a column name orweights = "equal"can be supplied directly. The selected credibility, weighting basis and before/after relativities are retained in the ordered refinement specification.audit_refinement()now provides a reproducible comparison between the unrestricted and refined GLM on common observed model points. It records the package version, formulas and ordered refinement steps, and reports the portfolio and exposure-weighted level effects before and after refinement.summary()on a pre-refitrating_refinementobject now gives a structured review of the proposed specification, whileas_gt()formats the fitted audit for reporting.bootstrap_coefficients()now assesses GLM coefficient stability by resampling the estimation portfolio rows and refitting the model. Individual failed fits are retained as missing replicates instead of stopping the full run.summary()reports link-scale or exponentiated results, with"relativity"available as an alias, andas_gt()provides a formatted coefficient table.- The function documentation, README and vignettes now use a consistent, practical actuarial style. The documentation distinguishes observed portfolio experience, fitted model effects, explicit tariff assumptions and model diagnostics, and states relevant interpretation limits more clearly. Experimental documentation badges have been removed, and the low-level
rmse()helper is listed with the package utilities in the reference index. add_smoothing()keeps"spline"as its general-purpose default and fits it as an unconstrained penalized cubic regression spline. Polynomial smoothing is selected explicitly with"poly", while"gam"provides a thin-plate GAM comparison.degreeis limited to polynomial fits,kis limited to spline methods, and an omittedkis adapted to the available grouped model points. Its arguments now follow the modelling sequence of variables, requiredbreaks, smoothing method, complexity and weights. Shape-constrained methods now use readable values such as"increasing","decreasing","increasing_convex"and"increasing_concave"; the former short SCOP codes remain accepted as compatibility aliases.add_smoothing()now focuses only on the initial smoothing and its structural shape. The former global strength adjustment has been removed.edit_smoothing()now supports a multiplicative localadjustment, such as1.05for an increase of up to 5 percent, together with continuous inherited or linear transitions and an explicit discontinuous"step"transition. Relative adjustments are anchored to the unchanged smoothing at both interval boundaries and remain separate from explicit target-value edits. Eachedit_smoothing()call is stored as a separate cumulative refinement step. In addition,edit_smoothing()now supportsslope_adjustment, withfromas its anchor. This leaves the curve unchanged through the anchor and scales only its remaining change, allowing a continuous effect to become steeper or flatter above a selected source-variable value. Inautoplot.rating_refinement(),stepselects the cumulative smoothing state andshow_initial_smoothing = TRUEoverlays the originaladd_smoothing()curve for comparison.add_restriction()recognises a split variable created by an earlieradd_relativities()step without requiringallow_new_risk_factors = TRUE. A partial restriction changes the supplied levels and fixes all remaining levels at their current derived relativities.add_relativities()now validates sublevels against the observedsplit_variableand parent categories againstmodel_variablebefore storing a refinement step. Closely matching observed values are suggested for likely spelling or spacing errors. The resulting hybrid tariff factor is now named withoutput_variable; its default is the model variable followed by_refined, while application-specific names such assbi_tariff_segmentcan be supplied explicitly.split_level()andrelativities()are now the primary helpers for defining named sublevel splits and share one reference page describing their combined use. The low-levelsplit_relativities()constructor is deprecated because it does not record the parent model level required byadd_relativities().- Spline, GAM and shape-constrained smoothing validate the requested basis dimension against the number of unique grouped covariate values before model fitting.
autoplot.rating_table()andautoplot.factor_analysis()abbreviate long risk-factor level labels by default. Shortened labels use one terminal period, can be disabled, and can be replaced by explicitly supplied display labels. Both methods now also providelegend_positionfor consistent legend placement.autoplot.riskfactor_gam()andautoplot.tariff_segments()now use one shared plotting implementation and are documented on one reference page. Segment plots retain their boundaries by default and can show the underlying GAM curve alone withshow_segments = FALSE.derive_tariff_segments()now usessegmentation_penaltyas its primary split-control argument;complexityremains available as a deprecated alias. The method divides the fitted GAM curve without applying a second exposure or claim-volume weight; these quantities have already informed the GAM estimate and remain available throughsummary()as diagnostics. Validation now covers malformed GAM objects, non-finite values and whole-number search controls. Tree splits are read from the fitted tree structure rather than parsed from printed rules.add_tariff_segments()reapplies stored boundaries to the continuous risk factor, so filtering or reordering rows no longer misaligns assignments and unsupported values outside the fitted range fail explicitly.
Unchanged and not compared
Licence, maintainer and the people named are the same in both releases. No advisory is known for either release.
Checks, the install tree, dependents and the repository describe the package as it is now, so they are on the package page.