Package: individual 0.1.19

Giovanni Charles

individual: Framework for Specifying and Simulating Individual Based Models

A framework which provides users a set of useful primitive elements for specifying individual based simulation models, with special attention models for infectious disease epidemiology. Users build models by specifying variables for each characteristic of individuals in the simulated population by using data structures exposed by the package. The package provides efficient methods for finding subsets of individuals based on these variables, or cohorts. Cohorts can then be targeted for variable updates or scheduled for events. Variable updates queued during a time step are executed at the end of a discrete time step, and the code places no restrictions on how individuals are allowed to interact. These data structures are designed to provide an intuitive way for users to turn their conceptual model of a system into executable code, which is fast and memory efficient.

Authors:Giovanni Charles [aut, cre], Sean L. Wu [aut], Peter Winskill [aut], Paul Liétar [aut], Imperial College of Science, Technology and Medicine [cph]

individual_0.1.19.tar.gz
individual_0.1.19.zip(r-4.7)individual_0.1.19.zip(r-4.6)individual_0.1.19.zip(r-4.5)
individual_0.1.19.tgz(r-4.6-x86_64)individual_0.1.19.tgz(r-4.6-arm64)individual_0.1.19.tgz(r-4.5-x86_64)individual_0.1.19.tgz(r-4.5-arm64)
individual_0.1.19.tar.gz(r-4.7-arm64)individual_0.1.19.tar.gz(r-4.7-x86_64)individual_0.1.19.tar.gz(r-4.6-arm64)individual_0.1.19.tar.gz(r-4.6-x86_64)
individual_0.1.19.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
individual/json (API)

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

Bug tracker:https://github.com/mrc-ide/individual/issues

Pkgdown/docs site:https://mrc-ide.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

agent-based-modelingepidemiologyindividual-based-modellinginfectious-diseasescpp

7.59 score 35 stars 1 packages 89 scripts 22 downloads 22 exports 25 dependencies

Last updated from:50524f239e (on master). Checks:11 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE239
linux-devel-x86_64NOTE184
source / vignettesOK333
linux-release-arm64NOTE234
linux-release-x86_64NOTE188
macos-release-arm64NOTE120
macos-release-x86_64NOTE294
macos-oldrel-arm64NOTE109
macos-oldrel-x86_64NOTE239
windows-develNOTE201
windows-releaseNOTE246
windows-oldrelNOTE192
wasm-releaseOK186

Exports:bernoulli_processBitsetbitset_count_andcategorical_count_renderer_processCategoricalVariableDoubleVariableEventfilter_bitsetfixed_probability_multinomial_processinfection_age_processIntegerVariablemulti_probability_bernoulli_processmulti_probability_multinomial_processRaggedDoubleRaggedIntegerRenderreschedule_listenerrestore_object_statesave_object_statesimulation_loopTargetedEventupdate_category_listener

Dependencies:briocallrclicrayondescdiffobjevaluatefsgluejsonlitelifecyclemagrittrotelpkgbuildpkgloadpraiseprocessxpsR6Rcpprlangrprojroottestthatwaldowithr

Contributing
Issues | Git | Code organisation | Pull Requests | Microbenchmarks | Wishlist

Last update: 2025-08-12
Started: 2021-03-08

Performance
Introduction | Bitset | Prefabs | C++ Prefabs

Last update: 2024-07-18
Started: 2020-06-02

Saving and restoring simulation state
Introduction | Usage | Practical example | Caveats | Restoring random number generator state | Saving and restoring events

Last update: 2024-03-11
Started: 2024-02-02

Changing population
Introduction | Resizing variables | Birth and death processes | Simulation

Last update: 2022-07-15
Started: 2022-07-15

API
Introduction | Variables | Categorical Variable | Integer Variable | Double Variable | Processes | Render | Events | Targeted Events | Simulate

Last update: 2021-08-20
Started: 2021-03-08

Tutorial
Introduction | Specification | Processes | Events | Rendering | Simulation

Last update: 2021-08-20
Started: 2021-03-11

Readme and manuals

Help Manual

Help pageTopics
Bernoulli processbernoulli_process
A Bitset ClassBitset
Count bitset andbitset_count_and
Render Categoriescategorical_count_renderer_process
CategoricalVariable ClassCategoricalVariable
DoubleVariable ClassDoubleVariable
Event ClassEvent
EventBase ClassEventBase
Filter a bitsetfilter_bitset
Multinomial processfixed_probability_multinomial_process
Infection process for age-structured modelsinfection_age_process
IntegerVariable ClassIntegerVariable
Overdispersed Bernoulli processmulti_probability_bernoulli_process
Overdispersed multinomial processmulti_probability_multinomial_process
RaggedDouble ClassRaggedDouble
RaggedInteger ClassRaggedInteger
RenderRender
Reschedule listenerreschedule_listener
Restore the state of simulation objects.restore_object_state
Restore the simulation staterestore_simulation_state
Save the state of a simulation object or set of objects.save_object_state
Save the simulation statesave_simulation_state
A premade simulation loopsimulation_loop
TargetedEvent ClassTargetedEvent
Update category listenerupdate_category_listener