VehicleAgeFactor, for liability and for comprehensive.
Read a rating table
List the rater’s tables, and read one as a DataFrame:Decimal values.
Build the proposed rater
Pass the edited tables towith_tables. RSLC checks each edited table before it exports the
new bundle:
- A table with a gap in a key that a lookup reaches raises
BundleError, which names the key. - A
floatraisesTypeError. Give each rate as aDecimal.
with_tables writes a new bundle with its own bundle_id, here to proposed.zip. To keep the
new bundle in memory only, omit path. Bundles and exact rating
describes what the new bundle holds.
Rate a book with both raters
Write oneprepare function, and give each rater a Program
with that function:
This rater’s inputs are the effective year and each vehicle’s model year. Add model years to the
synthetic book’s vehicles:
Market, and compare the two programs:
with_rater keeps prepare and the schema, and replaces the rater. This rater charges comprehensive on each
vehicle, so each submission pays 2.19% to 2.83% more. S4, with a 2008 car, moves least.
Summarize by segment
Joinsubmissions for the household_id, then households for the region, and group the change: