Package: healthsim 0.1.0
healthsim: Simulate Synthetic Health Insurance Portfolios and Panels
Generates synthetic South African health insurance data with a known data-generating process, for teaching and testing pricing models. One function simulates a cross-sectional portfolio of principal members with negative binomial claim counts and a lognormal-Pareto severity mixture. Another simulates a multi-year open-cohort panel with ageing, smoking cessation, wearable activity and sleep data joined by a Clayton copula, claims inflation, annual benefit limits, lapses and deaths. Every parameter can be changed, and the true expected frequency and severity are available for checking fitted models.
Authors:
healthsim_0.1.0.tar.gz
healthsim_0.1.0.zip(r-4.7-any)healthsim_0.1.0.zip(r-4.6-any)
healthsim_0.1.0.tar.gz(r-4.7-any)healthsim_0.1.0.tar.gz(r-4.6-any)
healthsim_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
healthsim/json (API)
| # Install 'healthsim' in R: |
| install.packages('healthsim', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/sbusiso-mdingi/healthsim/issues
Last updated from:4ce9eecaf9. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 122 | ||
| source / vignettes | OK | 153 | ||
| linux-release | OK | 116 | ||
| windows-devel | OK | 166 | ||
| windows-release | OK | 187 | ||
| wasm-release | OK | 88 |
Exports:hs_planshs_provincespanel_paramsportfolio_paramsset_levelssimulate_panelsimulate_portfoliotrue_frequencytrue_severityz_cv2z_mean
Dependencies:
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Provinces and benefit tiers | hs_plans hs_provinces |
| Parameters of the panel | panel_params |
| Parameters of the cross-sectional portfolio | portfolio_params |
| Set factor levels with the base profile first | set_levels |
| Simulate a multi-year health insurance panel | simulate_panel |
| Simulate a cross-sectional health insurance portfolio | simulate_portfolio |
| True expected frequency and severity | true_frequency true_severity |
| Moments of the claim-size multiplier | z_cv2 z_mean |
