openMpp R package
This repository is a part of OpenM++ open source microsimulation platform. It contains openMpp R package which allow read and update openM++ model database.
As it is today openMpp package tested only with R up to version 3.6.3 and R version 4 has not been tested yet.
Install and use latest release
Download latest openMpp R package release and install:
install.packages("~/openMpp_N.N.N.tar.gz", repos = NULL, type = "source") library(DBI) library("openMpp") library("RSQLite")
Download latest openM++ release, unpack it and
setwd() to models directory:
Try our examples:
- life_vs_mortality_test.R: analyze DurationOfLife using MortalityHazard parameter
- riskpaths_childlessness.R: analyze contribution of delayed union formations versus decreased fertility on childlessness
Build from sources and install
R CMD build openMpp install.packages("RSQLite") install.packages("~/openMpp_N.N.N.tar.gz", repos = NULL, type = "source")
As it is today only SQLite databases supported. For other vendors (Microsoft SQL, MySQL, PostgreSQL, IBM DB2, Oracle) only select from databse tested, update not implemented.
Please check openMpp package
man documentation and
Also visit our wiki for more information.
E-mail: openmpp dot org at gmail dot com