R: Table-Driven Insurance Rating

# Table-Driven Insurance Rating

## Documentation for package ‘ratingtables’ version 0.2.0

- DESCRIPTION file.
- Code demos. Use demo() to run them.
- Package NEWS.

## Help Pages

aggregate_entity_values | Aggregate rated entity values to parent records
append_rating_factors | Append wide rating-step values to rated data
apply_caps | Apply rate-change caps to indicated premiums
apply_rounding | Apply a rounding rule
average_entity_factors | Average entity rating factors
ensure_slot_columns | Ensure variable/level slot columns exist
example_rating_plan | Build a small example rating plan
explain_rating | Explain a rating calculation
find_duplicate_factors | Find duplicate factor-table rows
join_entity_factors | Join entity factors to rating data
join_entity_values | Join aggregated entity values to parent records
lookup_exact_value | Look up an exact rating-table value
lookup_factor_value | Look up a factor value by source
lookup_interpolated_value | Look up an interpolated rating-table value
lookup_term_value | Look up an exact rating term value
make_empty_slots | Add empty variable/level slot columns
new_rating_plan | Create a rating plan
populate_slots | Populate variable/level slots from named values
rate_entities | Rate child or entity records
rate_one_row_one_coverage | Rate one record for one coverage
rate_policies | Rate policy records
rate_policies_with_trace | Rate policy records with trace output
rate_set_to_tables | Split a rate set into review-friendly tables
required_policy_fields | Identify required rating-data fields
score_entity_rows | Score child or entity records
trace_to_excel_style | Reshape rating trace to an Excel-style step table
trace_to_wide_factors | Reshape rating trace to wide step-value columns
validate_factor_table | Check minimum factor-table structure
validate_policy_data | Check required rating-data columns
validate_rate_sets | Check rate-set identifiers and date ranges
validate_rating_plan | Check a rating plan
validate_rating_spec | Check rating-specification fields