Package: microsimulation 1.4.4

Mark Clements

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.4.tar.gz
microsimulation_1.4.4.tar.gz(r-4.5-noble)microsimulation_1.4.4.tar.gz(r-4.4-noble)
microsimulation_1.4.4.tgz(r-4.4-emscripten)microsimulation_1.4.4.tgz(r-4.3-emscripten)
microsimulation.pdf |microsimulation.html
microsimulation/json (API)

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

Peer review:

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

openblascpp

1.30 score 20 scripts 294 downloads 37 exports 8 dependencies

Last updated 4 months agofrom:e6d40b6aee. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 01 2024
R-4.5-linux-x86_64OKDec 01 2024

Exports:advance.substreamcallCalibrationPersoncallIllnessDeathcallPersonSimulationcallSimplePersoncallSimplePerson2discountedIntervaldiscountedPointenumenum<-frontierICERinlineCxxPluginLdFlagsmicrosimulation.exitmicrosimulation.initnext.user.Random.substreampqueuepqueue__cancelpqueue__clearpqueue__emptypqueue__newpqueue__poppqueue__pushr_create_current_streamr_get_user_random_seedr_next_rng_substreamr_remove_current_streamr_rng_advance_substreamr_set_user_random_seedRNGstateRNGStreamrnormPosset.user.Random.seedsignedunsigneduser.Random.seed

Dependencies:asciicodetoolsdigestlatticeMatrixRcppRcppArmadillosurvival

Readme and manuals

Help Manual

Help pageTopics
microsimulationmicrosimulation-package microsimulation
Internal function.microsimulationLdFlags .onLoad .onUnload advance.substream 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
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