A software package for graphical building and analysis of compartmental simulation models.
AS OF RIGHT NOW, THE PACKAGE HAS BASIC FUNCTIONALITY, BUT HAS NOT BEEN PROPERLY TESTED AND DEBUGGED YET! This is a very early version of the package, only some features are already implemented.
This R package provides functionality that lets the user build and analyze compartmental simulation models, implemented as ordinary differential equations, stochastic equivalents, or discrete time models.
All model building and analysis can be done without writing code. The user can export code for one of the model implementations for further customization.
I assume you have
R installed. I also highly recommend
RStudio, though it’s not required.
The package has not yet been submitted to CRAN, therefore it currently needs to be installed from Github. To do so, you need the
remotes package. If you don’t have it, install it first. The following commands will get you up and running:
After install (which you need to do only once), load the package by runing
library('modelbuilder'). You should receive a short greeting. Now you can open the main menu by running
modelbuilder(). From the main menu, you can load a model, export code for a model, build a new or modify an existing model, and analyze model dynamics ofr a loaded model.
See the Get Started section for a basic and currently sparse introduction.
The package is on GitHub and you can use the usual GitHub process to contribute updated, bug fixes, etc. If you don’t know how to do that or don’t have the time, you can also file an issue on GitHub and let me know what should be changed.
The package is built in a way that makes it (hopefully) easy for others to contribute simulation models for others to use. A formal structure for model sharing is forthcoming.