Package: MicroMoB 0.1.2

MicroMoB: Discrete Time Simulation of Mosquito-Borne Pathogen Transmission

Provides a framework based on S3 dispatch for constructing models of mosquito-borne pathogen transmission which are constructed from submodels of various components (i.e. immature and adult mosquitoes, human populations). A consistent mathematical expression for the distribution of bites on hosts means that different models (stochastic, deterministic, etc.) can be coherently incorporated and updated over a discrete time step.

Authors:Sean L. Wu [aut, cre], David L. Smith [aut], Sophie Libkind [ctb]

MicroMoB_0.1.2.tar.gz
MicroMoB_0.1.2.zip(r-4.5)MicroMoB_0.1.2.zip(r-4.4)MicroMoB_0.1.2.zip(r-4.3)
MicroMoB_0.1.2.tgz(r-4.4-x86_64)MicroMoB_0.1.2.tgz(r-4.4-arm64)MicroMoB_0.1.2.tgz(r-4.3-x86_64)MicroMoB_0.1.2.tgz(r-4.3-arm64)
MicroMoB_0.1.2.tar.gz(r-4.5-noble)MicroMoB_0.1.2.tar.gz(r-4.4-noble)
MicroMoB_0.1.2.tgz(r-4.4-emscripten)MicroMoB_0.1.2.tgz(r-4.3-emscripten)
MicroMoB.pdf |MicroMoB.html
MicroMoB/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/dd-harp/micromob/issues

On CRAN:

4.16 score 32 scripts 329 downloads 77 exports 2 dependencies

Last updated 2 years agofrom:9105166006. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 21 2024
R-4.5-win-x86_64OKNov 21 2024
R-4.5-linux-x86_64OKNov 21 2024
R-4.4-win-x86_64OKNov 21 2024
R-4.4-mac-x86_64OKNov 21 2024
R-4.4-mac-aarch64OKNov 21 2024
R-4.3-win-x86_64OKNov 21 2024
R-4.3-mac-x86_64OKNov 21 2024
R-4.3-mac-aarch64OKNov 21 2024

Exports:api_config_globalapprox_equalcompute_bloodmealcompute_bloodmeal_simplecompute_emergentscompute_fcompute_Hcompute_Ocompute_ovipositcompute_Psicompute_qcompute_Wdcompute_wfcompute_xcompute_xdcompute_Zdistributedivmoddraw_multinomget_config_alternative_traceget_config_aqua_BHget_config_aqua_traceget_config_humans_MOIget_config_humans_SIRget_config_humans_SISget_config_mosquito_RMget_config_mosquito_traceget_config_visitor_traceget_eip_mosquito_RMget_f_mosquito_RMget_K_aqua_BHget_kappa_mosquito_RMget_lambda_aqua_traceget_molt_aqua_BHget_nu_mosquito_RMget_p_mosquito_RMget_psi_mosquito_RMget_q_mosquito_RMget_surv_aqua_BHget_tmaxget_tnowis_binarymake_MicroMoBobserve_pfproutput_aquaoutput_mosquitoessample_stochastic_matrixsample_stochastic_vectorset_eip_mosquito_RMset_f_mosquito_RMset_K_aqua_BHset_kappa_mosquito_RMset_lambda_aqua_traceset_molt_aqua_BHset_nu_mosquito_RMset_p_mosquito_RMset_psi_mosquito_RMset_q_mosquito_RMset_surv_aqua_BHsetup_alternative_tracesetup_aqua_BHsetup_aqua_tracesetup_humans_MOIsetup_humans_SIPsetup_humans_SIRsetup_humans_SISsetup_mosquito_BQsetup_mosquito_RMsetup_mosquito_tracesetup_visitor_tracestep_aquastep_humansstep_mosquitoesstrata_to_residency_countsstrata_to_residency_proportiontime_patch_varying_parametertime_varying_parameter

Dependencies:abindjsonlite

Advanced topics

Rendered fromAdvanced.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2022-03-08
Started: 2022-03-08

Beverton-Holt aquatic model

Rendered fromBH_aqua.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2022-07-01
Started: 2022-02-01

Blood feeding

Rendered frombloodmeal.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2022-02-01
Started: 2022-02-01

Contributing

Rendered fromContributing.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2022-02-01
Started: 2022-02-01

Micro-MoB (Microsimulation for mosquito-borne pathogens)

Rendered fromMicroMoB.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2022-03-08
Started: 2022-02-01

Queueing model for human superinfection

Rendered fromMOI_human.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2022-07-01
Started: 2022-02-01

Ross-Macdonald mosquito model

Rendered fromRM_mosquito.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2022-07-01
Started: 2022-02-01

Ross-Macdonald transmission model

Rendered fromRM_transmission.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2022-07-01
Started: 2022-02-01

Simple behavioral state mosquito model

Rendered fromBQ_mosquito.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2022-07-01
Started: 2022-03-08

Readme and manuals

Help Manual

Help pageTopics
Read global configuration optionsapi_config_global
Check if two numeric values are approximately equalapprox_equal
Compute bloodmeals taken by mosquitoes on hostscompute_bloodmeal
Compute bloodmeals taken by mosquitoes on hosts in simple modelscompute_bloodmeal_simple
Compute number of newly emerging adults (lambda)compute_emergents
Compute number of newly emerging adults from Beverton-Holt dynamicscompute_emergents.BH
Compute number of newly emerging adults from forcing termcompute_emergents.trace
Compute number of newly emerging adults from forcing term (deterministic)compute_emergents.trace_deterministic
Compute number of newly emerging adults from forcing term (stochastic)compute_emergents.trace_stochastic
Compute mosquito feeding rate (f)compute_f
Compute mosquito feeding rate for BQ model (f)compute_f.BQ
Compute mosquito feeding rate for RM model (f)compute_f.RM
Compute null mosquito feeding rate (f)compute_f.trace
Compute human population strata sizes (H)compute_H
Compute human population strata sizes for MOI model (H)compute_H.MOI
Compute human population strata sizes for SIP model (H)compute_H.SIP
Compute human population strata sizes for SIR model (H)compute_H.SIR
Compute human population strata sizes for SIS model (H)compute_H.SIS
Compute available alternative blood hosts (O)compute_O
Compute available alternative blood hosts for trace model (O)compute_O.trace
Compute number of eggs laid from oviposition for each patchcompute_oviposit
Compute number of eggs laid from oviposition for each aquatic habitat for BQ modelcompute_oviposit.BQ
Compute number of eggs laid from oviposition for each patch for deterministic RM modelcompute_oviposit.BQ_deterministic
Compute number of eggs laid from oviposition for each patch for stochastic RM modelcompute_oviposit.BQ_stochastic
Compute number of eggs laid from oviposition for each patch for RM modelcompute_oviposit.RM
Compute number of eggs laid from oviposition for each patch for deterministic RM modelcompute_oviposit.RM_deterministic
Compute number of eggs laid from oviposition for each patch for stochastic RM modelcompute_oviposit.RM_stochastic
Compute number of eggs laid from oviposition for each patch for null modelcompute_oviposit.trace
Compute time at risk matrix (Psi)compute_Psi
Compute time at risk matrix for MOI model (Psi)compute_Psi.MOI
Compute time at risk matrix for SIP model (Psi)compute_Psi.SIP
Compute time at risk matrix for SIR model (Psi)compute_Psi.SIR
Compute time at risk matrix for SIS model (Psi)compute_Psi.SIS
Compute human blood feeding fraction (q)compute_q
Compute human blood feeding fraction for BQ model (q)compute_q.BQ
Compute human blood feeding fraction for RM model (q)compute_q.RM
Compute null human blood feeding fraction (q)compute_q.trace
Compute available visitors (W_{delta})compute_Wd
Compute available visitors for trace model (W_{delta})compute_Wd.trace
Compute human biting weights (w_{f})compute_wf
Compute human biting weights for MOI model (w_{f})compute_wf.MOI
Compute human biting weights for SIP model (w_{f})compute_wf.SIP
Compute human biting weights for SIR model (w_{f})compute_wf.SIR
Compute human biting weights for SIS model (w_{f})compute_wf.SIS
Compute net infectiousness of humans (x)compute_x
Compute net infectiousness for MOI model (x)compute_x.MOI
Compute net infectiousness for SIP model (x)compute_x.SIP
Compute net infectiousness for SIR model (x)compute_x.SIR
Compute net infectiousness for SIS model (x)compute_x.SIS
Compute net infectiousness of visitors (x_{delta})compute_xd
Compute net infectiousness of visitors for trace model (x_{delta})compute_xd.trace
Compute density of infective mosquitoes (Z)compute_Z
Compute density of infective mosquitoes for BQ model (Z)compute_Z.BQ
Compute density of infective mosquitoes for RM model (Z)compute_Z.RM
Compute null density of infective mosquitoes (Z)compute_Z.trace
Distribute items into bins as evenly as possibledistribute
Division of integersdivmod
Draw a multinomially distributed random vectordraw_multinom
Get parameters for trace driven alternative blood hostsget_config_alternative_trace
Get parameters for aquatic (immature) model with Beverton-Holt dynamicsget_config_aqua_BH
Get parameters for aquatic (immature) model with forced emergenceget_config_aqua_trace
Get parameters for MOI human modelget_config_humans_MOI
Get parameters for SIR human modelget_config_humans_SIR
Get parameters for SIS human modelget_config_humans_SIS
Get parameters for generalized Ross-Macdonald mosquito modelget_config_mosquito_RM
Get parameters for null mosquito modelget_config_mosquito_trace
Get parameters for trace driven visitorsget_config_visitor_trace
Get extrinsic incubation period for Ross-Macdonald mosquito modelget_eip_mosquito_RM
Get feeding rate for Ross-Macdonald mosquito modelget_f_mosquito_RM
Get carrying capacity for Beverton-Holt aquatic mosquito modelget_K_aqua_BH
Get kappa for Ross-Macdonald mosquito modelget_kappa_mosquito_RM
Get daily emergence for Beverton-Holt aquatic mosquito modelget_lambda_aqua_trace
Get daily maturation probability for Beverton-Holt aquatic mosquito modelget_molt_aqua_BH
Get number of eggs laid per oviposition for Ross-Macdonald mosquito modelget_nu_mosquito_RM
Get daily survival probability for Ross-Macdonald mosquito modelget_p_mosquito_RM
Get mosquito dispersal matrix for Ross-Macdonald mosquito modelget_psi_mosquito_RM
Get human blood feeding fraction for Ross-Macdonald mosquito modelget_q_mosquito_RM
Get daily survival probability for Beverton-Holt aquatic mosquito modelget_surv_aqua_BH
Get maximum time of simulation from model objectget_tmax
Get current time of simulation from model objectget_tnow
Does a numeric object consist of only zeros and ones?is_binary
Make a model objectmake_MicroMoB
MicroMoB: Microsimulation for mosquito-borne pathogensMicroMoB-package MicroMoB
Observe PfPR in human strataobserve_pfpr
Observe PfPR in human strata for SIP modelobserve_pfpr.SIP
Observe PfPR in human strata for SIS modelobserve_pfpr.SIS
Get output for aquatic (immature) mosquito populationsoutput_aqua
Get output for aquatic (immature) mosquito populations with Beverton-Holt dynamicsoutput_aqua.BH
Get output for aquatic (immature) mosquito populations with forced emergenceoutput_aqua.trace
Get output for mosquito populationsoutput_mosquitoes
Get output for Ross-Macdonald mosquito populationsoutput_mosquitoes.RM
Get output for null mosquito populationsoutput_mosquitoes.trace
Sample a stochastic matrixsample_stochastic_matrix
Sample a stochastic vectorsample_stochastic_vector
Set extrinsic incubation period for Ross-Macdonald mosquito modelset_eip_mosquito_RM
Set feeding rate for Ross-Macdonald mosquito modelset_f_mosquito_RM
Set carrying capacity for Beverton-Holt aquatic mosquito modelset_K_aqua_BH
Set kappa for Ross-Macdonald mosquito modelset_kappa_mosquito_RM
Set daily emergence for trace (forced) aquatic mosquito modelset_lambda_aqua_trace
Set daily maturation probability for Beverton-Holt aquatic mosquito modelset_molt_aqua_BH
Set number of eggs laid per oviposition for Ross-Macdonald mosquito modelset_nu_mosquito_RM
Set daily survival probability for Ross-Macdonald mosquito modelset_p_mosquito_RM
Set mosquito dispersal matrix for Ross-Macdonald mosquito modelset_psi_mosquito_RM
Set human blood feeding fraction for Ross-Macdonald mosquito modelset_q_mosquito_RM
Set daily survival probability for Beverton-Holt aquatic mosquito modelset_surv_aqua_BH
Setup trace driven alternative blood hostssetup_alternative_trace
Setup aquatic (immature) mosquito model with Beverton-Holt dynamicssetup_aqua_BH
Setup aquatic (immature) mosquito model with trace (forced) emergencesetup_aqua_trace
Setup humans with MOI (multiplicity of infection) pathogen modelsetup_humans_MOI
Setup humans with SIP pathogen modelsetup_humans_SIP
Setup humans with SIR infection modelsetup_humans_SIR
Setup humans with SIS pathogen modelsetup_humans_SIS
Setup blood feeding & oviposition (BQ) behavioral state mosquito modelsetup_mosquito_BQ
Setup generalized Ross-Macdonald mosquito modelsetup_mosquito_RM
Setup null mosquito modelsetup_mosquito_trace
Setup trace driven visitorssetup_visitor_trace
Update aquatic (immature) mosquito populationsstep_aqua
Update aquatic (immature) mosquito populations for Beverton-Holt dynamicsstep_aqua.BH
Update aquatic (immature) mosquito populations for deterministic Beverton-Holt dynamicsstep_aqua.BH_deterministic
Update aquatic (immature) mosquito populations for stochastic Beverton-Holt dynamicsstep_aqua.BH_stochastic
Update aquatic (immature) mosquito populations for forced emergencestep_aqua.trace
Update human populationstep_humans
Update MOI human modelstep_humans.MOI
Update MOI human model (deterministic)step_humans.MOI_deterministic
Update MOI human model (stochastic)step_humans.MOI_stochastic
Update SIP human modelstep_humans.SIP
Update SIP human model (deterministic)step_humans.SIP_deterministic
Update SIP human model (stochastic)step_humans.SIP_stochastic
Update SIR human modelstep_humans.SIR
Update SIR human model (deterministic)step_humans.SIR_deterministic
Update SIR human model (stochastic)step_humans.SIR_stochastic
Update SIS human modelstep_humans.SIS
Update SIS human model (deterministic)step_humans.SIS_deterministic
Update SIS human model (stochastic)step_humans.SIS_stochastic
Update mosquito populationstep_mosquitoes
Update blood feeding & oviposition (BQ) behavioral state mosquitoesstep_mosquitoes.BQ
Update blood feeding & oviposition (BQ) behavioral state mosquitoes (deterministic)step_mosquitoes.BQ_deterministic
Update blood feeding & oviposition (BQ) behavioral state mosquitoes (stochastic)step_mosquitoes.BQ_stochastic
Update Ross-Macdonald mosquitoesstep_mosquitoes.RM
Update Ross-Macdonald mosquitoes (deterministic)step_mosquitoes.RM_deterministic
Update Ross-Macdonald mosquitoes (stochastic)step_mosquitoes.RM_stochastic
Update null mosquito populationstep_mosquitoes.trace
Helper function for lumped population strata (counts)strata_to_residency_counts
Helper function for lumped population strata (proportional assignment)strata_to_residency_proportion
Input parameters that may vary by time and patchtime_patch_varying_parameter
Input parameters that may vary by timetime_varying_parameter