This interactive R Shiny application is designed to compute and visualize expected insurance reserves
and premiums for life insurance policies. It offers users a dynamic interface to explore how various insurance parameters
affect both reserves and premiums, with specific modules for single and couple policies.
-
An interactive line plot visualizing the expected reserve over time.
-
Responds in real-time to user inputs and clearly shows how reserve values evolve over a specified time frame.
-
Displays the expected premium in an infoBox, computed based on input parameters.
-
Expressed in ** USD ($) **, dynamically updated with every input change.
Fully interactive sidebar menus for:
-
Single Policy
-
Couple Policy
Product type (e.g., assurance, annuity)
-
Age
-
Interest rates
-
Assured sum
-
Annuity product type
-
Premium payments
-
Payment frequency
-
Expenses, and more.
-
Conditional panels dynamically show or hide variables depending on user selection, ensuring a clean and relevant interface.
- Prerequisites
Install required packages in R:
install.packages(c("shiny", "shinydashboard", "plotly", "dplyr"))
Clone this repository and run the app with:
shiny::runApp()
-
R & Shiny Package
-
shinydashboard
-
plotly (for interactive plots)
-
Custom actuarial functions
-
The app is tailored for life insurance calculations.
-
Custom functions (e.g., life annuity, life assurance) compute expected present values.
-
For other types of insurance, the logic will need adaptation.
-
Adding machine learning models or actuarial simulations could enhance the app.
insurance-pricing-app/
│
├── ui.R
├── server.R
├── www/ (assets for CSS or images)
├── data/
└── README.md
This project is open-source and is licensed under the MIT License.