Package: microsimulation 1.4.5
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:
microsimulation_1.4.5.tar.gz
microsimulation_1.4.5.tar.gz(r-4.7-arm64)microsimulation_1.4.5.tar.gz(r-4.7-x86_64)microsimulation_1.4.5.tar.gz(r-4.6-arm64)microsimulation_1.4.5.tar.gz(r-4.6-x86_64)
microsimulation_1.4.5.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://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/mclements/microsimulation/issues
- fhcrcData - Old data used in the prostata model
Last updated from:f1505fb6da. Checks:6 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 182 | ||
| linux-devel-x86_64 | OK | 180 | ||
| source / vignettes | OK | 220 | ||
| linux-release-arm64 | OK | 172 | ||
| linux-release-x86_64 | OK | 159 | ||
| wasm-release | OK | 141 |
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 page | Topics |
|---|---|
| microsimulation | microsimulation-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 example | callCalibrationPerson callIllnessDeath callPersonSimulation callSimplePerson callSimplePerson2 |
| Integrate a discounted value | discountedInterval |
| Old data used in the prostata model | fhcrcData |
| S3 priority queue implementation using C++ | BaseDiscreteEventSimulation BaseDiscreteEventSimulation-class EventQueue EventQueue-class pqueue PQueueRef PQueueRef-class |
| C++ function | callCalibrationSimulation 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 objects | RNGStream RNGStream-class with.RNGStream |
| Simulate event times from a survreg object | simulate.survreg |
| summary method for a SummaryReport object | ascii.ICER.SummaryReport ascii.SummaryReport ICER.SummaryReport print.summary.SummaryReport print.SummaryReport rbind.SummaryReport summary.SummaryReport |
