Package: microsimulation 1.4.9

microsimulation: Discrete Event Simulation in R and C++, with Tools for Cost-Effectiveness Analysis

Discrete event simulation using both R and C++ (Karlsson et al 2016; <doi:10.1109/eScience.2016.7870915>). The C++ code is adapted from the SSIM library <https://www.inf.usi.ch/carzaniga/ssim/>, allowing for event-oriented simulation. The code includes a SummaryReport class for reporting events and costs by age and other covariates. The C++ code is available as a static library for linking to other packages. A priority queue implementation is given in C++ together with an S3 closure and a reference class implementation. Finally, some tools are provided for cost-effectiveness analysis.

Authors:Mark Clements [aut, cre, cph], Alexandra Jauhiainen [aut], Andreas Karlsson [aut], Antonio Carzaniga [cph], University of Colorado [cph], Pierre L'Ecuyer [cph]

microsimulation_1.4.9.tar.gz
microsimulation_1.4.9.zip(r-4.7)microsimulation_1.4.9.zip(r-4.6)microsimulation_1.4.9.zip(r-4.5)
microsimulation_1.4.9.tgz(r-4.6-x86_64)microsimulation_1.4.9.tgz(r-4.6-arm64)microsimulation_1.4.9.tgz(r-4.5-x86_64)microsimulation_1.4.9.tgz(r-4.5-arm64)
microsimulation_1.4.9.tar.gz(r-4.7-arm64)microsimulation_1.4.9.tar.gz(r-4.7-x86_64)microsimulation_1.4.9.tar.gz(r-4.6-arm64)microsimulation_1.4.9.tar.gz(r-4.6-x86_64)
microsimulation_1.4.9.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
microsimulation/json (API)

# Install 'microsimulation' in R:
install.packages('microsimulation', repos = c('https://mclements.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mclements/microsimulation/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • fhcrcData - Old data used in the prostata model

On CRAN:

Conda:

cppdiscrete-event-simulationhealth-economicsopenblascpp

5.41 score 43 stars 25 scripts 212 downloads 42 exports 8 dependencies

Last updated from:27211dd994. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK175
linux-devel-x86_64OK178
source / vignettesOK193
linux-release-arm64OK187
linux-release-x86_64OK163
macos-release-arm64OK141
macos-release-x86_64OK396
macos-oldrel-arm64OK124
macos-oldrel-x86_64OK419
windows-develOK199
windows-releaseOK200
windows-oldrelOK234
wasm-releaseOK147

Exports:advance.substreamcallCalibrationPersoncallIllnessDeathcallPersonSimulationcallSimplePersoncallSimplePerson2ceac_mvndiscountedIntervaldiscountedPointdMVKenumenum<-frontierICERinlineCxxPluginLdFlagsmicrosimulation.exitmicrosimulation.initnext.user.Random.substreampMVKpqueuepqueue__cancelpqueue__clearpqueue__emptypqueue__newpqueue__poppqueue__pushqMVKr_create_current_streamr_get_user_random_seedr_next_rng_substreamr_remove_current_streamr_rng_advance_substreamr_set_user_random_seedrMVKRNGstateRNGStreamrnormPosset.user.Random.seedsignedunsigneduser.Random.seed

Dependencies:asciicodetoolsdigestlatticeMatrixRcppRcppArmadillosurvival

Readme and manuals

Help Manual

Help pageTopics
microsimulationmicrosimulation-package microsimulation
Internal function.microsimulationLdFlags .onLoad .onUnload advance.substream ceac_mvn discountedPoint enum enum<- frontier ICER inlineCxxPlugin LdFlags lines_frontier microsimulation.exit microsimulation.init next.user.Random.substream RNGstate rnormPos set.user.Random.seed signed unsigned user.Random.seed
call CalibrationPerson examplecallCalibrationPerson callIllnessDeath callPersonSimulation callSimplePerson callSimplePerson2
Integrate a discounted valuediscountedInterval
Probability density function for an MVK distributiondMVK pMVK qMVK rMVK rMVK2
Old data used in the prostata modelfhcrcData
S3 priority queue implementation using C++BaseDiscreteEventSimulation BaseDiscreteEventSimulation-class EventQueue EventQueue-class pqueue PQueueRef PQueueRef-class
C++ functioncallCalibrationSimulation pqueue__cancel pqueue__clear pqueue__empty pqueue__new pqueue__pop pqueue__push r_create_current_stream r_get_user_random_seed r_next_rng_substream r_remove_current_stream r_rng_advance_substream r_set_user_random_seed
S3 class to work with RngStream objectsRNGStream RNGStream-class with.RNGStream
Simulate event times from a survreg objectsimulate.survreg
summary method for a SummaryReport objectascii.ICER.SummaryReport ascii.SummaryReport ICER.SummaryReport print.summary.SummaryReport print.SummaryReport rbind.SummaryReport summary.SummaryReport