Skip to contents

Triangles

Build, cumulate, and visualise development triangles.

create_triangle()
Build a development triangle from row-level claims data
create_cumulative_triangle()
Cumulate a development triangle along columns
create_decumulative_triangle()
De-cumulate a cumulative development triangle
create_annual_triangle()
Re-aggregate a per-period triangle to an annual triangle
create_run_off_check()
Run-off check across all diagonals
diag_reader()
Read values along a triangle diagonal
diag_sums()
Cumulative diagonal sums of a triangle
diag_writer()
Append the latest diagonal of a new triangle to an old one
triangle_namer()
Rename a triangle's rows/columns for printing

Chain-ladder

Development factors and ultimate projections.

create_chl_coef_triangle()
Element-wise chain-ladder development factor triangle
create_chl_coefs()
Volume-weighted chain-ladder development factors
create_chl_coefs_weighted()
Volume-weighted CHL factors with an explicit weight triangle
create_chl_coefs_weighted_future()
Volume-weighted CHL factors with weight at the current column
create_avg_coefs()
Average development factors from a CHL factor triangle
create_product_coefs()
Cumulative product of chain-ladder factors (ultimate development)
create_chl_trg_visualization()
Plotly visualisation of selected columns of a CHL triangle
create_chl_trg_visualization_pvzp()
PVZP-style plotly visualisation (string x-axis)

Policy columns & exposures

create_find_columns()
Add zero/value columns based on equality conditions
create_policy_exposure_columns_m()
Build per-period exposure columns (in years)
create_policy_exposure_days_columns()
Build per-period exposure columns (in days)
create_multiple_columns_m()
Multiply a set of columns by another column
bind_with_source()
Row-bind a list of data frames with a source column

Czech birth numbers

rc_to_birth_day() rc_to_birth_day_2() rc_to_birth_day_3()
Convert a Czech birth number to a date of birth

Color palettes

rgb_colors_for_plot()
Build a smooth RGB rainbow data frame
get_colors() get_colors_plus() get_colors_duo()
Pick n evenly spaced colors from a rainbow data frame
plot_color_bars()
Quick visual sanity check of a generated palette
rainbow_cat()
Print colored text to the console (rainbow cycle)

Misc

load_excel_sheets()
Load every sheet of an Excel .xlsx workbook into a named list
load_xlsb_sheets()
Load every sheet of a binary Excel .xlsb workbook into a named list
numeric_format()
Format a number with a thin space as the thousands separator