{"id":14066998,"url":"https://github.com/jimbrig/lossrx","last_synced_at":"2025-07-01T14:09:21.508Z","repository":{"id":43871521,"uuid":"421496897","full_name":"jimbrig/lossrx","owner":"jimbrig","description":"An R package, plumber API, database, and Shiny App for Actuarial Loss Development and Reserving Workflows.","archived":false,"fork":false,"pushed_at":"2024-12-18T20:39:01.000Z","size":41157,"stargazers_count":13,"open_issues_count":5,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-10T15:50:56.965Z","etag":null,"topics":["actuarial-science","claims-data","claims-reserving","data-science","insurance","modelling","property-casualty","reserving","rpackage","rshiny","rstats","workflow"],"latest_commit_sha":null,"homepage":"https://docs.jimbrig.com/lossrx/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimbrig.png","metadata":{"files":{"readme":"README.Rmd","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json","zenodo":null}},"created_at":"2021-10-26T16:14:20.000Z","updated_at":"2025-04-06T02:38:00.000Z","dependencies_parsed_at":"2024-01-15T20:46:36.104Z","dependency_job_id":"eba3ab10-db50-4060-8731-cb8428e13908","html_url":"https://github.com/jimbrig/lossrx","commit_stats":{"total_commits":562,"total_committers":6,"mean_commits":93.66666666666667,"dds":0.4288256227758007,"last_synced_commit":"07723d6c1c6fea6c70428202ff18a8bc84b4cb92"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbrig%2Flossrx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbrig%2Flossrx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbrig%2Flossrx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbrig%2Flossrx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimbrig","download_url":"https://codeload.github.com/jimbrig/lossrx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252579995,"owners_count":21771248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actuarial-science","claims-data","claims-reserving","data-science","insurance","modelling","property-casualty","reserving","rpackage","rshiny","rstats","workflow"],"created_at":"2024-08-13T07:05:22.441Z","updated_at":"2025-05-05T21:31:02.040Z","avatar_url":"https://github.com/jimbrig.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# lossrx \u003cimg src='man/figures/logo.png' align=\"right\" height=\"139\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/jimbrig/lossrx/workflows/R-CMD-check/badge.svg)](https://github.com/jimbrig/lossrx/actions)\n[![Lifecycle:experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)\n[![Project Status:WIP](https://www.repostatus.org/badges/latest/wip.svg)](http://www.repostatus.org/#wip)\n\u003c!-- badges: end --\u003e\n\n\n*View the [Changelog](inst/CHANGELOG.md) for detailed progression on development of the package.*\n\n*View the [Latest Database Documentation](https://dbdocs.io/jimbrigf0cdc6204e/Actuarial-Database) for a detailed look into its structure.*\n\n## Contents\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n**Table of Contents**\n\n- [Overview](#overview)\n- [Installation](#installation)\n- [Data](#data)\n  - [Data Preparation](#data-preparation)\n  - [Database](#database)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Overview\n\nThe desired outcome of the `lossrx` R package is to provide actuaries and data scientists valuable tools and frameworks for performing Property Casualty related workflows.\n\nSpecifically, the package will contain:\n\n- A suite of utility and workflow oriented functions bundled as an R package\n- A plumber API that serves various endpoints related to a backend database and models\n- A comprehensive, yet simple migration-friendly relational database representing the various entities, attributes, and relationships involved with actuarial reserving.[^1]\n- A demo Shiny App for Actuarial Loss Development and Reserving including triangles, loss development factor selection, preliminary ultimates, etc. and a backend database/API to store results and selections.\n- Comprehensive documentation and tests\n\n## Installation\n\nYou can install the development version of `lossrx` with `pak`: [^2]\n\n```r\npak::pak(\"jimbrig/lossrx\")\n```\n\n## Data\n\n### Data Preparation\n\nThis package utilizes a lot of data and in turn has a lot of code inside the [data-raw](data-raw) folder. I recommend taking a look at its [README](data-raw/README.md) to gain an understanding of how the data was prepared for both use in the package as well as included and uploaded to the database.\n\nData is prepared in the following ways:\n\n- Simulated transactional claims data using the [claims_transactional.R Simulation R Script](https://github.com/jimbrig/lossrx/blob/main/data-raw/scripts/claims_transactional.R)\n- Downloaded and extracted using ropensci's [piggyback package](https://github.com/ropensci/piggyback) - see the [dataprep.R Script](https://github.com/jimbrig/lossrx/blob/main/data-raw/scripts/dataprep.R).\n- Supplemental *mocked data* generated using the [Mockaroo API](https://www.mockaroo.com/) for randomizing certain data attribute's.\n- Uploaded and merged into the relational database using `SQL`, `R`, `CSVs`, and `YAML` files (see below about database details).\n- Certain datasets are budled and included with the package as native `.rda` packaged data files.\n\n### Database\n\n*View Detailed [Database Documentation](https://dbdocs.io/jimbrigf0cdc6204e/Actuarial-Database) created via `dbdocs`* \n\nThe core database files are housed in the [inst/database](inst/database) directory and are included on package installation.\n\n[^1]: See the [database container package](https://github.com/jimbrig/lossrx/pkgs/container/actuarialdb) for details on how to run the database as a container image.\n\n[^2]: Similarly, you can install the package using the more common `devtools::install_github()` and `remotes::install_github()`\n\n## Checks\n\nLatest `R CMD CHECK`:\n\n```R\n-- R CMD check results -------------------------------------- lossrx 0.0.2 ----\nDuration: 1m 19.3s\n\n0 errors v | 0 warnings v | 0 notes v\n\nR CMD check succeeded\n```\n\n\u003e Jimmy Briggs | 2022\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimbrig%2Flossrx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimbrig%2Flossrx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimbrig%2Flossrx/lists"}