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.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: stats
Suggests: testthat (≥ 3.0.0)
Published: 2026-11-13
DOI: 10.32614/CRAN.package.healthsim
Author: Sbusiso Mdingi ORCID iD [aut, cre, cph]
Maintainer: Sbusiso Mdingi <sbusiso at mdingi.co.za>
BugReports: https://github.com/Sbusiso-Mdingi/healthsim/issues
License: MIT + file LICENSE
URL: https://github.com/Sbusiso-Mdingi/healthsim, https://www.kaggle.com/sbusisomdingiayesbu
NeedsCompilation: no
Citation: healthsim citation info
Materials: README, NEWS
CRAN checks: healthsim results

Documentation:

Reference manual: healthsim.html , healthsim.pdf

Downloads:

Package source: healthsim_0.1.0.tar.gz
Windows binaries: r-devel: healthsim_0.1.0.zip, r-release: healthsim_0.1.0.zip, r-oldrel: healthsim_0.1.0.zip
macOS binaries: r-release (arm64): healthsim_0.1.0.tgz, r-oldrel (arm64): healthsim_0.1.0.tgz, r-release (x86_64): healthsim_0.1.0.tgz, r-oldrel (x86_64): healthsim_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=healthsim to link to this page.