IBMPopSim1.1.0 package

Individual Based Model Population Simulation

gompertz

Gompertz–Makeham intensity function.

has_event_type

Search for a given string in event types

assertCharacteristics

Function for internal use

assertEvents

Function for internal use

assertParameters

Function for internal use

assertPopulation

Function for internal use

assertPyramid

Function for internal use

capitalize

Function for internal use

check_intensity_code

Check the intensity code.

check_interaction_code

Check the interaction code.

check_kernel_code

Check the kernel code.

compatibility_chars_events

Check characteristics-events compatibility

compatibility_pop_model

Check population-model compatibility

death_table

Death table

details_cpp

Autogenerate cpp details documentation

details_intensity_code

Autogenerated documentation for intensity code

details_interaction_code

Autogenerated documentation for interaction code

details_kernel_code

Autogenerated documentation for kernel code

details_type_event

Autogenerated documentation for event type

exposure_table

Exposure table

get_characteristics.population

Returns names and C types of the characteristics.

get_characteristics

Generic method for get_characteristics

get_Ctype

Function for internal use

get_Rtype

Function for internal use

mk_event_interaction

Creating an event with intensity of type interaction

summary.event

Summarizing an event

summary.logs

Summary logs

summary.model

Summary of a model

summary.population

Summary population

summary.simulation_output

Summary simulation output

age_pyramids.population

Age pyramid from a population data frame at some given times.

add_characteristic.population

Add characteristic to a population

add_characteristic

Generic method for add_characteristic

age_pyramid.population

Age pyramid from a population at a given time.

age_pyramid

Generic method for age_pyramid

age_pyramids

Generic method for age_pyramids

IBMPopSim-package

IBMPopSim: Individual Based Model Population Simulation

id_complete

Complete a population id

linfun

Linear interpolation function.

max.stepfun

Returns the maximum of a function of class stepfun.

merge_pop_withid

A function returning a merged dataframe from a list of population data...

mk_event_individual

Creating an event with intensity of class individual

mk_event_inhomogeneous_poisson

Creating inhomogeneous Poisson class event

mk_event_poisson

Creating Poisson class event

mk_individual_type

Function for internal use

mk_model

Creates a model for IBMPopSim.

mk_parameters_types

Extract types (R and C++) of the parameters

mkcpp_declaration_individual

Function for internal use

mkcpp_definition_events

Function for internal use

mkcpp_event

Function for internal use

mkcpp_initialisation_population

Function for internal use

mkcpp_output_population

Function for internal use

mkcpp_parameters

Function for internal use

mkcpp_popsim

Function for internal use

piecewise_x

Piecewise real function.

piecewise_xy

Piecewise real function of two variables.

plot.population

Plot the age pyramid of a population data frame (at a given time).

plot.pyramid

Plot an age pyramid.

popsample.pyramid

Sample a population from an age pyramid (at a given time).

popsample

Generic method for popsample

weibull

Weibull function.

popsim

Simulation of a model.

population_alive.population

Returns a population of individuals alive.

population_alive

Generic method for population_alive

population

Class population

print.event

Print Event

print.model

Printing of a model

print.population

Printing population

pyramid

Class pyramid

stepfun

Step Function.

Simulation of the random evolution of heterogeneous populations using stochastic Individual-Based Models (IBMs) <doi:10.48550/arXiv.2303.06183>. The package enables users to simulate population evolution, in which individuals are characterized by their age and some characteristics, and the population is modified by different types of events, including births/arrivals, death/exit events, or changes of characteristics. The frequency at which an event can occur to an individual can depend on their age and characteristics, but also on the characteristics of other individuals (interactions). Such models have a wide range of applications. For instance, IBMs can be used for simulating the evolution of a heterogeneous insurance portfolio with selection or for validating mortality forecasts. This package overcomes the limitations of time-consuming IBMs simulations by implementing new efficient algorithms based on thinning methods, which are compiled using the 'Rcpp' package while providing a user-friendly interface.

  • Maintainer: DaphnĂ© Giorgi
  • License: MIT + file LICENSE
  • Last published: 2024-10-15