From 2a42e8c75e76c285794e214936e3fcfd975ea635 Mon Sep 17 00:00:00 2001 From: David Smith Date: Wed, 4 Sep 2024 13:32:20 -0700 Subject: [PATCH] Moving towards a final version of ramp.xds + Fixed some issues in plot-terms.R + Changed notation from season(t) to F_season(t); from trend(t) to F_trend(t) + Changes to the documentation --- NAMESPACE | 1 - R/adult-basicM.R | 19 +- R/adult-interface.R | 41 +-- R/adult-si.R | 6 +- R/adult-trivial.R | 14 +- R/aquatic-basicL.R | 2 +- R/aquatic-trivial.R | 17 +- R/human-trivial.R | 12 +- R/plot-terms.R | 82 ++---- R/xds_setup.R | 64 ++-- README.md | 8 +- _pkgdown.yml | 17 +- docs/404.html | 15 +- docs/LICENSE-text.html | 15 +- docs/LICENSE.html | 15 +- docs/articles/AdultMosquitoes.html | 101 ++++--- .../figure-html/unnamed-chunk-13-1.png | Bin 35507 -> 16830 bytes .../figure-html/unnamed-chunk-14-1.png | Bin 35507 -> 16830 bytes .../figure-html/unnamed-chunk-7-1.png | Bin 26800 -> 25712 bytes .../figure-html/unnamed-chunk-8-1.png | Bin 32950 -> 26800 bytes .../figure-html/unnamed-chunk-9-1.png | Bin 34389 -> 32950 bytes docs/articles/Contributing.html | 15 +- docs/articles/GettingStarted.html | 118 +++++--- .../figure-html/unnamed-chunk-12-1.png | Bin 0 -> 70739 bytes docs/articles/History.html | 15 +- docs/articles/Nimble.html | 15 +- docs/articles/RM-dts-Mosquito.html | 15 +- docs/articles/TraceFunctions.html | 73 +++-- .../figure-html/unnamed-chunk-6-1.png | Bin 81877 -> 86753 bytes .../figure-html/unnamed-chunk-7-1.png | Bin 0 -> 81877 bytes docs/articles/Understanding_ramp.xds.html | 15 +- docs/articles/Working.html | 15 +- docs/articles/adult_RM.html | 15 +- docs/articles/aqua_basic.html | 15 +- docs/articles/aqua_trace.html | 15 +- docs/articles/ex_534.html | 15 +- docs/articles/heterogeneous_biting.html | 15 +- docs/articles/heterogeneous_transmission.html | 273 +++++++++++++++--- docs/articles/human_hmoi.html | 15 +- docs/articles/human_seis.html | 15 +- docs/articles/human_sip.html | 15 +- docs/articles/human_sis.html | 15 +- docs/articles/index.html | 19 +- docs/articles/modular_forms.html | 51 ++-- docs/articles/modularity.html | 15 +- docs/articles/spat_metric.html | 15 +- docs/articles/vc_lemenach.html | 45 ++- .../figure-html/unnamed-chunk-22-1.png | Bin 71793 -> 52421 bytes .../figure-html/unnamed-chunk-23-1.png | Bin 0 -> 35016 bytes docs/authors.html | 15 +- docs/index.html | 26 +- docs/pkgdown.yml | 4 +- docs/reference/AreaSpray.html | 15 +- docs/reference/AreaSpray.null.html | 15 +- docs/reference/AreaSprayEffectSizes.html | 15 +- docs/reference/AreaSprayEffectSizes.null.html | 15 +- docs/reference/AreaSprayEffects.html | 15 +- docs/reference/AreaSprayEffects.null.html | 15 +- docs/reference/AvailableSugar.forced.html | 15 +- docs/reference/AvailableSugar.html | 15 +- docs/reference/AvailableSugar.static.html | 15 +- docs/reference/BedNetEffectSizes.html | 15 +- .../reference/BedNetEffectSizes.lemenach.html | 15 +- docs/reference/BedNetEffectSizes.no_nets.html | 15 +- docs/reference/BedNetEffects.html | 15 +- docs/reference/BedNetEffects.lemenach.html | 15 +- docs/reference/BedNetEffects.no_nets.html | 15 +- docs/reference/Bionomics.html | 15 +- docs/reference/Births.html | 15 +- docs/reference/Births.zero.html | 15 +- docs/reference/BloodFeeding.dynamic.html | 15 +- docs/reference/BloodFeeding.html | 15 +- docs/reference/BloodFeeding.setup.html | 15 +- docs/reference/BloodFeeding.static.html | 15 +- docs/reference/CareSeeking.html | 15 +- docs/reference/CareSeeking.no_behavior.html | 15 +- docs/reference/Clinic.html | 15 +- docs/reference/Clinic.no_control.html | 15 +- docs/reference/Control.forced.html | 15 +- docs/reference/Control.html | 15 +- docs/reference/Control.no_control.html | 15 +- docs/reference/Control.static.html | 15 +- docs/reference/Development.html | 15 +- docs/reference/Development.no_dev.html | 15 +- docs/reference/DistributeBedNets.html | 15 +- docs/reference/DistributeBedNets.no_nets.html | 15 +- docs/reference/EggLaying.dynamic.html | 15 +- docs/reference/EggLaying.html | 15 +- docs/reference/EggLaying.setup.html | 15 +- docs/reference/EggLaying.static.html | 15 +- docs/reference/Emergence.html | 15 +- docs/reference/Exposure.dts.html | 15 +- docs/reference/Exposure.html | 15 +- docs/reference/Exposure.multiday.html | 15 +- docs/reference/Exposure.xde.html | 15 +- docs/reference/F_H.SEIS.html | 15 +- docs/reference/F_H.SEISd.html | 15 +- docs/reference/F_H.SIP.html | 15 +- docs/reference/F_H.SIS.html | 15 +- docs/reference/F_H.hMoI.html | 15 +- docs/reference/F_H.html | 15 +- docs/reference/F_H.trivial.html | 15 +- docs/reference/F_X.SEIS.html | 15 +- docs/reference/F_X.SEISd.html | 15 +- docs/reference/F_X.trivial.html | 15 +- docs/reference/F_ar.html | 15 +- docs/reference/F_ar.nb.html | 15 +- docs/reference/F_ar.pois.html | 15 +- docs/reference/F_b.SEIS.html | 15 +- docs/reference/F_b.SEISd.html | 15 +- docs/reference/F_b.SIP.html | 15 +- docs/reference/F_b.SIS.html | 15 +- docs/reference/F_b.hMoI.html | 15 +- docs/reference/F_b.html | 15 +- docs/reference/F_b.trivial.html | 15 +- docs/reference/F_calK.html | 15 +- docs/reference/F_calK.static.html | 15 +- docs/reference/F_eggs.RM.html | 15 +- docs/reference/F_eggs.RM_dts.html | 15 +- docs/reference/F_eggs.basicM.html | 15 +- docs/reference/F_eggs.html | 15 +- docs/reference/F_eggs.sei.html | 15 +- docs/reference/F_eggs.si.html | 15 +- docs/reference/F_eggs.trivial.html | 15 +- docs/reference/F_eip.fixedlag_dts.html | 15 +- docs/reference/F_eip.html | 15 +- docs/reference/F_eip.static.html | 15 +- docs/reference/F_emerge.basicL.html | 15 +- docs/reference/F_emerge.html | 15 +- docs/reference/F_emerge.trivial.html | 15 +- docs/reference/F_f.html | 15 +- docs/reference/F_f.static.html | 15 +- docs/reference/F_f.type2.html | 15 +- docs/reference/F_flat.html | 15 +- docs/reference/F_foi.html | 15 +- docs/reference/F_foi.nb.html | 15 +- docs/reference/F_foi.pois.html | 15 +- docs/reference/F_fqM.RM.html | 15 +- docs/reference/F_fqM.RM_dts.html | 15 +- docs/reference/F_fqM.basicM.html | 15 +- docs/reference/F_fqM.html | 15 +- docs/reference/F_fqM.sei.html | 15 +- docs/reference/F_fqM.si.html | 15 +- docs/reference/F_fqM.trivial.html | 15 +- docs/reference/F_fqZ.RM.html | 15 +- docs/reference/F_fqZ.RM_dts.html | 15 +- docs/reference/F_fqZ.basicM.html | 15 +- docs/reference/F_fqZ.html | 15 +- docs/reference/F_fqZ.sei.html | 15 +- docs/reference/F_fqZ.si.html | 15 +- docs/reference/F_fqZ.trivial.html | 15 +- docs/reference/F_g.html | 15 +- docs/reference/F_g.static.html | 15 +- docs/reference/F_mu.html | 15 +- docs/reference/F_mu.static.html | 15 +- docs/reference/F_ni.SEIS.html | 15 +- docs/reference/F_ni.SEISd.html | 15 +- docs/reference/F_ni.SIP.html | 15 +- docs/reference/F_ni.SIS.html | 15 +- docs/reference/F_ni.hMoI.html | 15 +- docs/reference/F_ni.html | 15 +- docs/reference/F_nu.html | 15 +- docs/reference/F_nu.static.html | 15 +- docs/reference/F_nu.type2.html | 15 +- docs/reference/F_p.html | 15 +- docs/reference/F_pr.SEIS.html | 15 +- docs/reference/F_pr.SEISd.html | 15 +- docs/reference/F_pr.SIP.html | 15 +- docs/reference/F_pr.SIS.html | 15 +- docs/reference/F_pr.hMoI.html | 15 +- docs/reference/F_pr.html | 15 +- docs/reference/F_pr.trivial.html | 15 +- docs/reference/F_pr_by_lm.SEIS.html | 15 +- docs/reference/F_pr_by_lm.SEISd.html | 15 +- docs/reference/F_pr_by_lm.SIP.html | 15 +- docs/reference/F_pr_by_lm.SIS.html | 15 +- docs/reference/F_pr_by_lm.hMoI.html | 15 +- docs/reference/F_pr_by_lm.html | 15 +- docs/reference/F_pr_by_lm.trivial.html | 15 +- docs/reference/F_pr_by_pcr.SEIS.html | 15 +- docs/reference/F_pr_by_pcr.SEISd.html | 15 +- docs/reference/F_pr_by_pcr.SIP.html | 15 +- docs/reference/F_pr_by_pcr.SIS.html | 15 +- docs/reference/F_pr_by_pcr.hMoI.html | 15 +- docs/reference/F_pr_by_pcr.html | 15 +- docs/reference/F_pr_by_pcr.trivial.html | 15 +- docs/reference/F_pr_by_rdt.SEIS.html | 15 +- docs/reference/F_pr_by_rdt.SEISd.html | 15 +- docs/reference/F_pr_by_rdt.SIP.html | 15 +- docs/reference/F_pr_by_rdt.SIS.html | 15 +- docs/reference/F_pr_by_rdt.hMoI.html | 15 +- docs/reference/F_pr_by_rdt.html | 15 +- docs/reference/F_pr_by_rdt.trivial.html | 15 +- docs/reference/F_q.dynamic.html | 15 +- docs/reference/F_q.html | 15 +- docs/reference/F_q.static.html | 15 +- docs/reference/F_sigma.BQS.html | 15 +- docs/reference/F_sigma.html | 15 +- docs/reference/F_sigma.static.html | 15 +- docs/reference/F_x.SIP.html | 15 +- docs/reference/F_x.SIS.html | 15 +- docs/reference/F_x.hMoI.html | 15 +- docs/reference/F_x.html | 15 +- docs/reference/Forcing.dynamic.html | 15 +- docs/reference/Forcing.html | 15 +- docs/reference/Forcing.setup.html | 15 +- docs/reference/Forcing.static.html | 15 +- docs/reference/HTC.SEIS.html | 15 +- docs/reference/HTC.SEISd.html | 15 +- docs/reference/HTC.SIP.html | 15 +- docs/reference/HTC.SIS.html | 15 +- docs/reference/HTC.hMoI.html | 15 +- docs/reference/HTC.html | 15 +- docs/reference/HabitatDynamics.html | 15 +- docs/reference/HabitatDynamics.static.html | 15 +- docs/reference/Hydrology.html | 15 +- docs/reference/Hydrology.no_forcing.html | 15 +- docs/reference/IRS_EffectSizes.html | 15 +- docs/reference/IRS_EffectSizes.null.html | 15 +- docs/reference/IRS_Effects.html | 15 +- docs/reference/IRS_Effects.null.html | 15 +- docs/reference/LBionomics.basicL.html | 15 +- docs/reference/LBionomics.html | 15 +- docs/reference/LBionomics.static.html | 15 +- docs/reference/LBionomics.trivial.html | 15 +- docs/reference/LSM_EffectSizes.html | 15 +- docs/reference/LSM_EffectSizes.null.html | 15 +- docs/reference/LSM_Effects.html | 15 +- docs/reference/LSM_Effects.null.html | 15 +- docs/reference/MBionomics.GeRM.html | 15 +- docs/reference/MBionomics.RM.html | 15 +- docs/reference/MBionomics.html | 15 +- docs/reference/MBionomics.static.html | 15 +- docs/reference/MYZ_rates2probs.html | 15 +- docs/reference/MYZ_rates2probs_RM.html | 15 +- .../MYZ_rates2probs_RM.modified.html | 15 +- .../MYZ_rates2probs_RM.unmodified.html | 15 +- docs/reference/MassMedical.forced.html | 15 +- docs/reference/MassMedical.html | 15 +- docs/reference/MassMedical.no_control.html | 15 +- docs/reference/OtherBloodHosts.html | 15 +- docs/reference/OtherBloodHosts.static.html | 15 +- docs/reference/OviTraps.html | 15 +- docs/reference/OviTraps.null.html | 15 +- docs/reference/OwnBedNet.html | 15 +- docs/reference/OwnBedNet.no_nets.html | 15 +- docs/reference/Rainfall.html | 15 +- docs/reference/Rainfall.no_forcing.html | 15 +- docs/reference/Relative_Humidity.html | 15 +- .../Relative_Humidity.no_forcing.html | 15 +- docs/reference/Resources.forced.html | 15 +- docs/reference/Resources.html | 15 +- docs/reference/Resources.setup.html | 15 +- docs/reference/Resources.static.html | 15 +- docs/reference/Shock.html | 15 +- docs/reference/Shock.no_shock.html | 15 +- docs/reference/SprayHouses.html | 15 +- docs/reference/SprayHouses.null.html | 15 +- docs/reference/SugarBaitEffectSizes.html | 15 +- docs/reference/SugarBaitEffectSizes.null.html | 15 +- docs/reference/SugarBaitEffects.html | 15 +- docs/reference/SugarBaitEffects.null.html | 15 +- docs/reference/SugarBaits.html | 15 +- docs/reference/SugarBaits.null.html | 15 +- docs/reference/SugarDynamics.html | 15 +- docs/reference/SugarDynamics.static.html | 15 +- docs/reference/Temperature.html | 15 +- docs/reference/Temperature.no_forcing.html | 15 +- docs/reference/Transmission.dynamic.html | 15 +- docs/reference/Transmission.html | 15 +- docs/reference/Transmission.setup.html | 15 +- docs/reference/Transmission.static.html | 15 +- docs/reference/TreatHabitats.html | 15 +- docs/reference/TreatHabitats.null.html | 15 +- docs/reference/Update_Lt.basicL.html | 15 +- docs/reference/Update_Lt.html | 15 +- docs/reference/Update_Lt.trivial.html | 15 +- docs/reference/Update_MYZt.RM.html | 15 +- docs/reference/Update_MYZt.RM_dts.html | 15 +- docs/reference/Update_MYZt.basicM.html | 15 +- docs/reference/Update_MYZt.html | 15 +- docs/reference/Update_MYZt.sei.html | 15 +- docs/reference/Update_MYZt.si.html | 15 +- docs/reference/Update_MYZt.trivial.html | 15 +- docs/reference/Update_Xt.SEIS.html | 15 +- docs/reference/Update_Xt.SEISd.html | 15 +- docs/reference/Update_Xt.SIP.html | 15 +- docs/reference/Update_Xt.SIS.html | 15 +- docs/reference/Update_Xt.html | 15 +- docs/reference/Update_Xt.trivial.html | 15 +- docs/reference/UseBedNet.html | 15 +- docs/reference/UseBedNet.no_nets.html | 15 +- docs/reference/VectorControl.control.html | 15 +- docs/reference/VectorControl.html | 15 +- docs/reference/VectorControl.no_control.html | 15 +- .../VectorControlEffectSizes.control.html | 15 +- docs/reference/VectorControlEffectSizes.html | 15 +- .../VectorControlEffectSizes.no_control.html | 15 +- .../VectorControlEffects.control.html | 15 +- docs/reference/VectorControlEffects.html | 15 +- .../VectorControlEffects.no_control.html | 15 +- docs/reference/Visiting.basic.html | 15 +- docs/reference/Visiting.html | 15 +- docs/reference/Visiting.static.html | 15 +- docs/reference/Weather.forced.html | 15 +- docs/reference/Weather.html | 15 +- docs/reference/Weather.no_forcing.html | 15 +- docs/reference/add_lines_X_SEIS.html | 15 +- docs/reference/add_lines_X_SEISd.html | 15 +- docs/reference/add_lines_X_SIP.html | 15 +- docs/reference/add_lines_X_SIS.html | 15 +- docs/reference/approx_equal.html | 15 +- docs/reference/ar2eir.html | 15 +- docs/reference/ar2eir.nb.html | 15 +- docs/reference/ar2eir.pois.html | 15 +- docs/reference/change_H.html | 15 +- docs/reference/change_TimeSpent.html | 15 +- docs/reference/change_blood_weights.html | 15 +- docs/reference/change_calK.html | 15 +- docs/reference/change_habitat_weights.html | 15 +- docs/reference/checkIt.html | 15 +- docs/reference/compute_B.html | 15 +- docs/reference/compute_EIR.html | 15 +- docs/reference/compute_Omega.dts.html | 15 +- docs/reference/compute_Omega.html | 15 +- docs/reference/compute_Omega.xde.html | 15 +- docs/reference/compute_Omega_dts.html | 15 +- docs/reference/compute_Omega_xde.html | 15 +- docs/reference/compute_Q.html | 15 +- docs/reference/compute_Qtot.html | 15 +- docs/reference/compute_RBR.html | 15 +- docs/reference/compute_TaR.html | 15 +- docs/reference/compute_Upsilon.html | 15 +- docs/reference/compute_Upsilon.xde.html | 15 +- docs/reference/compute_W.html | 15 +- .../compute_bednet_effect_sizes_lemenach.html | 15 +- docs/reference/compute_beta.html | 15 +- docs/reference/compute_calU.html | 15 +- docs/reference/compute_eggs_laid.html | 15 +- docs/reference/compute_kappa.html | 15 +- docs/reference/compute_local_frac.html | 15 +- docs/reference/create_Linits_basicL.html | 15 +- docs/reference/create_Lpar_basicL.html | 15 +- docs/reference/create_Lpar_trivial.html | 27 +- docs/reference/create_MYZinits_RM.html | 15 +- docs/reference/create_MYZinits_RM_dts.html | 15 +- docs/reference/create_MYZinits_basicM.html | 15 +- docs/reference/create_MYZinits_sei.html | 15 +- docs/reference/create_MYZinits_si.html | 15 +- docs/reference/create_MYZpar_GeRM.html | 15 +- docs/reference/create_MYZpar_RM.html | 15 +- docs/reference/create_MYZpar_trivial.html | 27 +- docs/reference/create_TimeSpent_athome.html | 15 +- docs/reference/create_TimeSpent_xy.html | 15 +- docs/reference/create_Xinits_SEIS.html | 15 +- docs/reference/create_Xinits_SEISd.html | 15 +- docs/reference/create_Xinits_SIP.html | 15 +- docs/reference/create_Xinits_SIS.html | 15 +- docs/reference/create_Xinits_hMoI.html | 15 +- docs/reference/create_Xpar_SEIS.html | 15 +- docs/reference/create_Xpar_SEISd.html | 15 +- docs/reference/create_Xpar_SIP.html | 15 +- docs/reference/create_Xpar_SIS.html | 15 +- docs/reference/create_Xpar_hMoI.html | 15 +- docs/reference/create_Xpar_trivial.html | 27 +- docs/reference/create_calK_herethere.html | 15 +- docs/reference/create_calK_xy.html | 15 +- docs/reference/create_habitat_matrix.html | 15 +- docs/reference/create_residence_matrix.html | 15 +- docs/reference/dHdt.html | 15 +- docs/reference/dHdt.zero.html | 15 +- docs/reference/dLdt.basicL.html | 15 +- docs/reference/dLdt.html | 15 +- docs/reference/dLdt.trivial.html | 15 +- docs/reference/dMYZdt.RM.html | 15 +- docs/reference/dMYZdt.basicM.html | 15 +- docs/reference/dMYZdt.html | 15 +- docs/reference/dMYZdt.sei.html | 15 +- docs/reference/dMYZdt.si.html | 25 +- docs/reference/dMYZdt.trivial.html | 15 +- docs/reference/dXdt.SEIS.html | 15 +- docs/reference/dXdt.SEISd.html | 15 +- docs/reference/dXdt.SIP.html | 15 +- docs/reference/dXdt.SIS.html | 15 +- docs/reference/dXdt.hMoI.html | 15 +- docs/reference/dXdt.html | 15 +- docs/reference/dXdt.trivial.html | 15 +- docs/reference/d_F_eip_dt.html | 15 +- docs/reference/d_F_eip_dt.static.html | 15 +- docs/reference/diag_inverse.html | 15 +- docs/reference/dts_solve.html | 15 +- docs/reference/dts_stable_orbit.html | 15 +- docs/reference/dts_steady.html | 15 +- docs/reference/dts_steady_state_L.html | 15 +- docs/reference/dts_steady_state_MYZ.html | 15 +- docs/reference/dts_steady_state_X.SEIS.html | 15 +- docs/reference/dts_steady_state_X.SIP.html | 15 +- docs/reference/dts_steady_state_X.SIS.html | 15 +- docs/reference/dts_steady_state_X.html | 15 +- docs/reference/dts_update.aquatic.html | 15 +- docs/reference/dts_update.cohort.html | 15 +- docs/reference/dts_update.full.html | 15 +- docs/reference/dts_update.html | 15 +- docs/reference/dts_update.human.html | 15 +- docs/reference/dts_update.mosy.html | 15 +- docs/reference/dts_update_Lt.html | 15 +- docs/reference/dts_update_MYZt.html | 15 +- docs/reference/dts_update_Xt.html | 15 +- docs/reference/eir2fqZ.html | 15 +- docs/reference/foi2eir.html | 15 +- docs/reference/foi2eir.nb.html | 15 +- docs/reference/foi2eir.pois.html | 15 +- docs/reference/fqZ2eir.html | 15 +- docs/reference/get_EIR.html | 15 +- docs/reference/get_H.html | 15 +- docs/reference/get_Linits.html | 15 +- docs/reference/get_MYZinits.RM.html | 15 +- docs/reference/get_MYZinits.RM_dts.html | 15 +- docs/reference/get_MYZinits.basicM.html | 15 +- docs/reference/get_MYZinits.html | 15 +- docs/reference/get_MYZinits.sei.html | 15 +- docs/reference/get_MYZinits.si.html | 15 +- docs/reference/get_MYZinits.trivial.html | 15 +- docs/reference/get_Omega.html | 15 +- docs/reference/get_Upsilon.html | 15 +- docs/reference/get_Xinits.SEIS.html | 15 +- docs/reference/get_Xinits.SEISd.html | 15 +- docs/reference/get_Xinits.SIP.html | 15 +- docs/reference/get_Xinits.SIS.html | 15 +- docs/reference/get_Xinits.hMoI.html | 15 +- docs/reference/get_Xinits.html | 15 +- docs/reference/get_Xinits.trivial.html | 15 +- docs/reference/get_bionomics.html | 15 +- docs/reference/get_bionomics_s.html | 15 +- docs/reference/get_bionomics_s_t.html | 15 +- docs/reference/get_f.GeRM.html | 15 +- docs/reference/get_f.RM.html | 15 +- docs/reference/get_f.html | 15 +- docs/reference/get_f.trivial.html | 15 +- docs/reference/get_ft.html | 15 +- docs/reference/get_g.GeRM.html | 15 +- docs/reference/get_g.RM.html | 15 +- docs/reference/get_g.html | 15 +- docs/reference/get_g.trivial.html | 15 +- docs/reference/get_gt.html | 15 +- docs/reference/get_inits.html | 15 +- docs/reference/get_last.html | 15 +- docs/reference/get_q.GeRM.html | 15 +- docs/reference/get_q.RM.html | 15 +- docs/reference/get_q.html | 15 +- docs/reference/get_q.trivial.html | 15 +- docs/reference/get_qt.html | 15 +- docs/reference/get_sigma.GeRM.html | 15 +- docs/reference/get_sigma.RM.html | 15 +- docs/reference/get_sigma.html | 15 +- docs/reference/get_sigma.trivial.html | 15 +- docs/reference/get_sigmat.html | 15 +- docs/reference/get_terms.html | 15 +- docs/reference/index.html | 23 +- docs/reference/last_to_inits.html | 15 +- docs/reference/list_Lvars.basicL.html | 15 +- docs/reference/list_Lvars.html | 15 +- docs/reference/list_Lvars.trivial.html | 15 +- docs/reference/list_MYZvars.RM.html | 15 +- docs/reference/list_MYZvars.RM_dts.html | 15 +- docs/reference/list_MYZvars.basicM.html | 15 +- docs/reference/list_MYZvars.html | 15 +- docs/reference/list_MYZvars.sei.html | 15 +- docs/reference/list_MYZvars.si.html | 15 +- docs/reference/list_Xvars.SEIS.html | 15 +- docs/reference/list_Xvars.SEISd.html | 15 +- docs/reference/list_Xvars.SIP.html | 15 +- docs/reference/list_Xvars.SIS.html | 15 +- docs/reference/list_Xvars.html | 15 +- docs/reference/list_vars.html | 15 +- docs/reference/make_EIR.html | 15 +- docs/reference/make_EIR_full.html | 15 +- docs/reference/make_Linits.basicL.html | 15 +- docs/reference/make_Linits.html | 15 +- docs/reference/make_Linits.trivial.html | 15 +- docs/reference/make_Lpar.basicL.html | 15 +- docs/reference/make_Lpar.html | 15 +- docs/reference/make_Lpar.trivial.html | 15 +- docs/reference/make_MYZinits.RM.html | 15 +- docs/reference/make_MYZinits.RM_dts.html | 15 +- docs/reference/make_MYZinits.basicM.html | 15 +- docs/reference/make_MYZinits.html | 15 +- docs/reference/make_MYZinits.sei.html | 15 +- docs/reference/make_MYZinits.si.html | 15 +- docs/reference/make_MYZinits.trivial.html | 15 +- docs/reference/make_MYZpar.RM.html | 15 +- docs/reference/make_MYZpar.basicM.html | 15 +- docs/reference/make_MYZpar.html | 15 +- docs/reference/make_MYZpar.sei.html | 15 +- docs/reference/make_MYZpar.si.html | 15 +- docs/reference/make_MYZpar.trivial.html | 15 +- docs/reference/make_Omega.dts.html | 15 +- docs/reference/make_Omega.html | 15 +- docs/reference/make_Omega.xde.html | 15 +- docs/reference/make_Q.html | 15 +- docs/reference/make_RBR.html | 15 +- docs/reference/make_TaR.html | 15 +- docs/reference/make_TimeSpent.as_matrix.html | 15 +- docs/reference/make_TimeSpent.athome.html | 15 +- docs/reference/make_TimeSpent.html | 15 +- docs/reference/make_TimeSpent.xy.html | 15 +- docs/reference/make_WB.html | 15 +- docs/reference/make_X_indices.SEIS.html | 15 +- docs/reference/make_X_indices.SEISd.html | 15 +- docs/reference/make_X_indices.SIP.html | 15 +- docs/reference/make_X_indices.SIS.html | 15 +- docs/reference/make_X_indices.hMoI.html | 15 +- docs/reference/make_X_indices.html | 15 +- docs/reference/make_X_indices.trivial.html | 15 +- docs/reference/make_Xinits.SEIS.html | 15 +- docs/reference/make_Xinits.SEISd.html | 15 +- docs/reference/make_Xinits.SIP.html | 15 +- docs/reference/make_Xinits.SIS.html | 15 +- docs/reference/make_Xinits.hMoI.html | 15 +- docs/reference/make_Xinits.html | 15 +- docs/reference/make_Xinits.trivial.html | 15 +- docs/reference/make_Xpar.SEIS.html | 15 +- docs/reference/make_Xpar.SEISd.html | 15 +- docs/reference/make_Xpar.SIP.html | 15 +- docs/reference/make_Xpar.SIS.html | 15 +- docs/reference/make_Xpar.hMoI.html | 15 +- docs/reference/make_Xpar.html | 15 +- docs/reference/make_Xpar.trivial.html | 15 +- docs/reference/make_beta.html | 15 +- docs/reference/make_calK.as_matrix.html | 15 +- docs/reference/make_calK.herethere.html | 15 +- docs/reference/make_calK.html | 15 +- docs/reference/make_calK.xy.html | 15 +- docs/reference/make_calU.html | 15 +- docs/reference/make_eggs_laid.html | 15 +- docs/reference/make_indices.html | 15 +- docs/reference/make_indices_L.basicL.html | 15 +- docs/reference/make_indices_L.html | 15 +- docs/reference/make_indices_L.trivial.html | 15 +- docs/reference/make_indices_MYZ.RM.html | 15 +- docs/reference/make_indices_MYZ.RM_dts.html | 15 +- docs/reference/make_indices_MYZ.basicM.html | 15 +- docs/reference/make_indices_MYZ.html | 15 +- docs/reference/make_indices_MYZ.sei.html | 15 +- docs/reference/make_indices_MYZ.si.html | 15 +- docs/reference/make_indices_MYZ.trivial.html | 15 +- docs/reference/make_kappa.html | 15 +- docs/reference/make_local_frac.html | 15 +- docs/reference/make_outputs.aquatic.html | 15 +- docs/reference/make_outputs.full.html | 15 +- docs/reference/make_outputs.html | 15 +- docs/reference/make_outputs.human.html | 15 +- docs/reference/make_outputs.mosy.html | 15 +- .../make_parameters_demography_null.html | 15 +- docs/reference/make_runtime.dts.html | 15 +- docs/reference/make_runtime.html | 15 +- docs/reference/make_runtime.xde.html | 15 +- docs/reference/make_xds_template.html | 15 +- docs/reference/metric_calD.html | 15 +- docs/reference/metric_calR.html | 15 +- docs/reference/metric_calV.html | 15 +- docs/reference/metric_calZ.html | 15 +- docs/reference/parse_Lorbits.basicL.html | 19 +- docs/reference/parse_Lorbits.html | 15 +- docs/reference/parse_Lorbits.trivial.html | 15 +- docs/reference/parse_MYZorbits.RM.html | 15 +- docs/reference/parse_MYZorbits.RM_dts.html | 15 +- docs/reference/parse_MYZorbits.basicM.html | 15 +- docs/reference/parse_MYZorbits.html | 15 +- docs/reference/parse_MYZorbits.sei.html | 15 +- docs/reference/parse_MYZorbits.si.html | 15 +- docs/reference/parse_MYZorbits.trivial.html | 15 +- docs/reference/parse_Xorbits.SEIS.html | 15 +- docs/reference/parse_Xorbits.SEISd.html | 15 +- docs/reference/parse_Xorbits.SIP.html | 15 +- docs/reference/parse_Xorbits.SIS.html | 15 +- docs/reference/parse_Xorbits.hMoI.html | 15 +- docs/reference/parse_Xorbits.html | 15 +- docs/reference/parse_Xorbits.trivial.html | 15 +- docs/reference/parse_orbits.html | 15 +- docs/reference/parse_y.html | 15 +- docs/reference/put_Lvars.html | 15 +- docs/reference/put_Lvars.trivial.html | 15 +- docs/reference/put_MYZvars.RM_dts.html | 15 +- docs/reference/put_MYZvars.html | 15 +- docs/reference/put_MYZvars.sei.html | 15 +- docs/reference/put_MYZvars.si.html | 15 +- docs/reference/put_Xvars.SEIS.html | 15 +- docs/reference/put_Xvars.SEISd.html | 15 +- docs/reference/put_Xvars.SIS.html | 15 +- docs/reference/put_Xvars.html | 15 +- docs/reference/reset_state.aquatic.html | 15 +- docs/reference/reset_state.cohort.html | 15 +- docs/reference/reset_state.full.html | 15 +- docs/reference/reset_state.html | 15 +- docs/reference/reset_state.human.html | 15 +- docs/reference/reset_state.mosy.html | 15 +- docs/reference/reset_state_i.html | 15 +- docs/reference/runt.html | 15 +- docs/reference/set_Dday.html | 15 +- docs/reference/setup_BLOOD_FEEDING.html | 15 +- docs/reference/setup_EGG_LAYING.html | 15 +- docs/reference/setup_EIP.fixedlag_dts.html | 15 +- docs/reference/setup_EIP.html | 15 +- docs/reference/setup_Hpar_static.html | 15 +- docs/reference/setup_TRANSMISSION.html | 15 +- docs/reference/setup_area_spray_null.html | 15 +- .../setup_care_seeking_no_behavior.html | 15 +- docs/reference/setup_clinic_forced.html | 15 +- docs/reference/setup_clinic_no_control.html | 15 +- docs/reference/setup_control.forced.html | 15 +- docs/reference/setup_control.html | 15 +- docs/reference/setup_control.no_control.html | 15 +- docs/reference/setup_control_forced.html | 15 +- docs/reference/setup_control_no_control.html | 15 +- docs/reference/setup_eip_fixedlag_dts.html | 15 +- docs/reference/setup_exposure_multiday.html | 15 +- docs/reference/setup_exposure_nb.dts.html | 15 +- docs/reference/setup_exposure_nb.html | 15 +- docs/reference/setup_exposure_nb.xde.html | 15 +- docs/reference/setup_exposure_pois.dts.html | 15 +- docs/reference/setup_exposure_pois.html | 15 +- docs/reference/setup_exposure_pois.xde.html | 15 +- docs/reference/setup_forcing.html | 15 +- .../setup_habitat_dynamics_static.html | 15 +- .../reference/setup_hydrology_no_forcing.html | 15 +- docs/reference/setup_irs_null.html | 15 +- docs/reference/setup_itn_lemenach.html | 15 +- docs/reference/setup_lsm_null.html | 15 +- docs/reference/setup_mass_medical_forced.html | 15 +- .../setup_mass_medical_no_control.html | 15 +- docs/reference/setup_no_development.html | 15 +- docs/reference/setup_no_nets.html | 15 +- docs/reference/setup_no_shock.html | 15 +- .../setup_other_blood_hosts_static.html | 15 +- docs/reference/setup_ovitraps_null.html | 15 +- docs/reference/setup_rainfall_no_forcing.html | 15 +- .../setup_relative_humidity_no_forcing.html | 15 +- docs/reference/setup_resources_forced.html | 15 +- docs/reference/setup_resources_static.html | 15 +- docs/reference/setup_sugar_baits_null.html | 15 +- docs/reference/setup_sugar_static.html | 15 +- .../setup_temperature_no_forcing.html | 15 +- docs/reference/setup_travel_static.dts.html | 15 +- docs/reference/setup_travel_static.html | 15 +- docs/reference/setup_travel_static.xde.html | 15 +- docs/reference/setup_vc_control.html | 15 +- docs/reference/setup_vc_no_control.html | 15 +- docs/reference/setup_visitors_basic.html | 15 +- docs/reference/setup_visitors_static.html | 15 +- docs/reference/setup_weather_forced.html | 15 +- docs/reference/setup_weather_no_forcing.html | 15 +- docs/reference/shapeIt.html | 15 +- docs/reference/travel_malaria.dts.html | 15 +- docs/reference/travel_malaria.html | 15 +- docs/reference/travel_malaria.xde.html | 15 +- docs/reference/trigger_setup.dynamic.html | 15 +- docs/reference/trigger_setup.html | 15 +- docs/reference/trigger_setup.setup.html | 15 +- docs/reference/trigger_setup.static.html | 15 +- docs/reference/update_Linits.basicL.html | 15 +- docs/reference/update_Linits.html | 15 +- docs/reference/update_Linits.trivial.html | 15 +- docs/reference/update_MYZinits.RM.html | 15 +- docs/reference/update_MYZinits.RM_dts.html | 15 +- docs/reference/update_MYZinits.basicM.html | 15 +- docs/reference/update_MYZinits.html | 15 +- docs/reference/update_MYZinits.sei.html | 15 +- docs/reference/update_MYZinits.si.html | 15 +- docs/reference/update_MYZinits.trivial.html | 15 +- docs/reference/update_Xinits.SEIS.html | 15 +- docs/reference/update_Xinits.SEISd.html | 15 +- docs/reference/update_Xinits.SIP.html | 15 +- docs/reference/update_Xinits.SIS.html | 15 +- docs/reference/update_Xinits.hMoI.html | 15 +- docs/reference/update_Xinits.html | 15 +- docs/reference/update_Xinits.trivial.html | 15 +- docs/reference/update_inits.html | 15 +- docs/reference/view_habitat_matrix.html | 15 +- docs/reference/view_residence_matrix.html | 15 +- docs/reference/xde_cohort_derivatives.html | 15 +- docs/reference/xde_cohort_desolve.dde.html | 15 +- docs/reference/xde_cohort_desolve.html | 15 +- docs/reference/xde_cohort_desolve.ode.html | 15 +- docs/reference/xde_derivatives.aquatic.html | 15 +- docs/reference/xde_derivatives.full.html | 15 +- docs/reference/xde_derivatives.html | 15 +- docs/reference/xde_derivatives.human.html | 15 +- docs/reference/xde_derivatives.mosy.html | 15 +- docs/reference/xde_solve.dde.html | 15 +- docs/reference/xde_solve.html | 15 +- docs/reference/xde_solve.ode.html | 15 +- docs/reference/xde_solve_cohort.html | 15 +- docs/reference/xde_stable_orbit.html | 15 +- docs/reference/xde_steady.dde.html | 15 +- docs/reference/xde_steady.html | 15 +- docs/reference/xde_steady.ode.html | 15 +- docs/reference/xde_steady_state_L.basicL.html | 15 +- docs/reference/xde_steady_state_L.html | 15 +- .../reference/xde_steady_state_L.trivial.html | 15 +- docs/reference/xde_steady_state_M.basicM.html | 15 +- docs/reference/xde_steady_state_M.html | 15 +- docs/reference/xde_steady_state_MYZ.RM.html | 15 +- docs/reference/xde_steady_state_MYZ.html | 15 +- docs/reference/xde_steady_state_MYZ.sei.html | 15 +- docs/reference/xde_steady_state_MYZ.si.html | 15 +- .../xde_steady_state_MYZ.trivial.html | 15 +- docs/reference/xde_steady_state_X.SEIS.html | 15 +- docs/reference/xde_steady_state_X.SEISd.html | 15 +- docs/reference/xde_steady_state_X.SIP.html | 15 +- docs/reference/xde_steady_state_X.SIS.html | 15 +- docs/reference/xde_steady_state_X.hMoI.html | 15 +- docs/reference/xde_steady_state_X.html | 15 +- .../reference/xde_steady_state_X.trivial.html | 15 +- docs/reference/xde_steady_state_XH.html | 15 +- docs/reference/xds_flatten.html | 15 +- docs/reference/xds_lines_EIR.html | 19 +- docs/reference/xds_lines_M.html | 15 +- docs/reference/xds_lines_PR.html | 19 +- docs/reference/xds_lines_Y.html | 15 +- docs/reference/xds_lines_Y_fracs.html | 15 +- docs/reference/xds_lines_Z.html | 15 +- docs/reference/xds_lines_Z_fracs.html | 15 +- docs/reference/xds_plot_EIR.html | 32 +- docs/reference/xds_plot_M.html | 15 +- docs/reference/xds_plot_PR.html | 32 +- docs/reference/xds_plot_X.SEIS.html | 15 +- docs/reference/xds_plot_X.SEISd.html | 15 +- docs/reference/xds_plot_X.SIP.html | 15 +- docs/reference/xds_plot_X.SIS.html | 15 +- docs/reference/xds_plot_X.html | 15 +- docs/reference/xds_plot_Y.html | 15 +- docs/reference/xds_plot_Y_fracs.html | 15 +- docs/reference/xds_plot_Z.html | 15 +- docs/reference/xds_plot_Z_fracs.html | 15 +- docs/reference/xds_plot_aEIR.html | 23 +- docs/reference/xds_setup.html | 99 +++---- docs/reference/xds_setup_aquatic.html | 15 +- docs/reference/xds_setup_cohort.html | 15 +- docs/reference/xds_setup_human.html | 37 +-- docs/reference/xds_setup_mosy.html | 15 +- man/create_Lpar_trivial.Rd | 8 +- man/create_MYZpar_trivial.Rd | 8 +- man/create_Xpar_trivial.Rd | 8 +- man/dMYZdt.si.Rd | 5 +- man/parse_Lorbits.basicL.Rd | 2 +- man/xds_lines_EIR.Rd | 4 +- man/xds_lines_PR.Rd | 4 +- man/xds_lines_aEIR.Rd | 22 -- man/xds_plot_EIR.Rd | 13 +- man/xds_plot_PR.Rd | 13 +- man/xds_plot_aEIR.Rd | 6 +- man/xds_setup.Rd | 52 ++-- man/xds_setup_human.Rd | 12 +- vignettes/AdultMosquitoes.Rmd | 62 +++- vignettes/GettingStarted.Rmd | 67 ++++- vignettes/TraceFunctions.Rmd | 51 ++-- vignettes/environmental_heterogeneity.Rmd | 81 ------ vignettes/heterogeneous_mixing.Rmd | 18 -- vignettes/heterogeneous_transmission.Rmd | 158 +++++++++- vignettes/modular_forms.Rmd | 16 +- vignettes/vc_lemenach.Rmd | 27 +- 762 files changed, 3191 insertions(+), 9303 deletions(-) create mode 100644 docs/articles/GettingStarted_files/figure-html/unnamed-chunk-12-1.png create mode 100644 docs/articles/TraceFunctions_files/figure-html/unnamed-chunk-7-1.png create mode 100644 docs/articles/vc_lemenach_files/figure-html/unnamed-chunk-23-1.png delete mode 100644 man/xds_lines_aEIR.Rd delete mode 100644 vignettes/environmental_heterogeneity.Rmd delete mode 100644 vignettes/heterogeneous_mixing.Rmd diff --git a/NAMESPACE b/NAMESPACE index a82181c79..b3b690a55 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -663,7 +663,6 @@ export(xds_lines_Y) export(xds_lines_Y_fracs) export(xds_lines_Z) export(xds_lines_Z_fracs) -export(xds_lines_aEIR) export(xds_plot_EIR) export(xds_plot_M) export(xds_plot_PR) diff --git a/R/adult-basicM.R b/R/adult-basicM.R index d80eb9e1f..6e8c681e5 100644 --- a/R/adult-basicM.R +++ b/R/adult-basicM.R @@ -66,15 +66,16 @@ Update_MYZt.basicM <- function(t, y, pars, s) { #' @export make_MYZpar.basicM = function(MYZname, pars, s, MYZopts=list()){ setup_as = with(MYZopts, ifelse(exists("setup_as"), setup_as, "RM")) - if(setup_as == "GeRM"){ - MYZpar <- create_MYZpar_GeRM(pars$nPatches, MYZopts) - } else { - MYZpar <- create_MYZpar_RM(pars$nPatches, MYZopts) - } - class(MYZpar) <- 'basicM' - pars$MYZpar[[s]] = MYZpar - return(pars) -} + with(MYZopts,{ + if(setup_as == "GeRM"){ + MYZpar <- create_MYZpar_GeRM(pars$nPatches, MYZopts) + } else { + MYZpar <- create_MYZpar_RM(pars$nPatches, MYZopts) + } + class(MYZpar) <- 'basicM' + pars$MYZpar[[s]] = MYZpar + return(pars) +})} diff --git a/R/adult-interface.R b/R/adult-interface.R index 1c7535e6f..b1b9a9106 100644 --- a/R/adult-interface.R +++ b/R/adult-interface.R @@ -13,26 +13,6 @@ dMYZdt <- function(t, y, pars, s) { UseMethod("dMYZdt", pars$MYZpar[[s]]) } -#' @title Compute steady states for \eqn{\cal MYZ} models -#' @description This method dispatches on the type of `MYZpar`. -#' @param Lambda the daily emergence rate of adult mosquitoes -#' @param kappa net infectiousness -#' @param MYZpar a list that defines an adult model -#' @return none -#' @export -xde_steady_state_MYZ = function(Lambda, kappa, MYZpar){ - UseMethod("xde_steady_state_MYZ", MYZpar) -} - -#' @title Compute the steady states as a function of the daily EIR -#' @description This method dispatches on the type of `MYZpar`. -#' @param Lambda the daily emergence rate of adult mosquitoes -#' @param MYZpar a list that defines an adult model -#' @return none -#' @export -xde_steady_state_M = function(Lambda, MYZpar){ - UseMethod("xde_steady_state_M", MYZpar) -} #' @title A function to set up adult mosquito models #' @description This method dispatches on `MYZname`. @@ -230,3 +210,24 @@ get_g = function(pars, s=1){ get_sigma = function(pars, s=1){ UseMethod("get_sigma", pars$MYZpar[[s]]$baseline) } + +#' @title Compute steady states for \eqn{\cal MYZ} models +#' @description This method dispatches on the type of `MYZpar`. +#' @param Lambda the daily emergence rate of adult mosquitoes +#' @param kappa net infectiousness +#' @param MYZpar a list that defines an adult model +#' @return none +#' @export +xde_steady_state_MYZ = function(Lambda, kappa, MYZpar){ + UseMethod("xde_steady_state_MYZ", MYZpar) +} + +#' @title Compute the steady states as a function of the daily EIR +#' @description This method dispatches on the type of `MYZpar`. +#' @param Lambda the daily emergence rate of adult mosquitoes +#' @param MYZpar a list that defines an adult model +#' @return none +#' @export +xde_steady_state_M = function(Lambda, MYZpar){ + UseMethod("xde_steady_state_M", MYZpar) +} diff --git a/R/adult-si.R b/R/adult-si.R index 581bc119d..9c3a78dd5 100644 --- a/R/adult-si.R +++ b/R/adult-si.R @@ -7,10 +7,12 @@ #' \deqn{ #' \begin{array}{rr} #' dM/dt =& \Lambda &- \Omega \cdot M \\ -#' dY/dt =& f q \kappa (M-Y) &- \Omega \cdot Y +#' dY/dt =& f q \kappa (M-Y) &- \Omega \cdot Y \\ #' \end{array}. #' } -#' The model assumes \eqn{Z = \Upsilon Y} +#' and infectious mosquitoes are by the variable +#' \deqn{Z = e^{-\Omega \tau} \cdot Y} +#' #' @inheritParams dMYZdt #' @return a [numeric] vector #' @export diff --git a/R/adult-trivial.R b/R/adult-trivial.R index 17afcd0cd..7524c7bed 100644 --- a/R/adult-trivial.R +++ b/R/adult-trivial.R @@ -8,7 +8,7 @@ F_fqZ.trivial <- function(t, y, pars, s) { f = get_f(pars, s) q = get_q(pars, s) - Z = with(pars$MYZpar[[s]], Z*season(t)*trend(t)) + Z = with(pars$MYZpar[[s]], Z*F_season(t)*F_trend(t)) return(f*q*Z) } @@ -19,7 +19,7 @@ F_fqZ.trivial <- function(t, y, pars, s) { #' @export F_eggs.trivial <- function(t, y, pars, s) { with(pars$MYZpar[[s]], - return(eggs*season(t)*trend(t)) + return(eggs*F_season(t)*F_trend(t)) )} #' @title Blood feeding rate of the infective mosquito population @@ -79,13 +79,13 @@ xde_steady_state_MYZ.trivial = function(Lambda, kappa, MYZpar){with(MYZpar,{ #' @param q the human fraction #' @param Z the human fraction #' @param eggs the human fraction -#' @param season a seasonality function -#' @param trend a trend function +#' @param F_season a F_seasonality function +#' @param F_trend a F_trend function #' @return none #' @export create_MYZpar_trivial = function(nPatches, MYZopts, f = 1, q = 1, Z=1, eggs=1, - season = F_flat, trend=F_flat){ + F_season = F_flat, F_trend=F_flat){ with(MYZopts,{ MYZpar <- list() MYZpar$nPatches <- nPatches @@ -106,8 +106,8 @@ create_MYZpar_trivial = function(nPatches, MYZopts, MYZpar$Z <- checkIt(Z, nPatches) MYZpar$eggs <- checkIt(eggs, nPatches) - MYZpar$season <- season - MYZpar$trend <- trend + MYZpar$F_season <- F_season + MYZpar$F_trend <- F_trend return(MYZpar) })} diff --git a/R/aquatic-basicL.R b/R/aquatic-basicL.R index 84c6f8983..4b0c69674 100644 --- a/R/aquatic-basicL.R +++ b/R/aquatic-basicL.R @@ -166,7 +166,7 @@ create_Linits_basicL = function(nHabitats, Lopts=list(), L=1){with(Lopts,{ #' @title Parse the variable names for the basicL model #' @description Implements [parse_Lorbits] for basicL competition model. #' @inheritParams parse_Lorbits -#' @return [list] +#' @return a parsed [list]; the variables are attached by name #' @export parse_Lorbits.basicL <- function(outputs, pars, s) { L = outputs[,pars$ix$L[[s]]$L_ix] diff --git a/R/aquatic-trivial.R b/R/aquatic-trivial.R index bbe60ced0..ed1bb26e8 100644 --- a/R/aquatic-trivial.R +++ b/R/aquatic-trivial.R @@ -5,26 +5,27 @@ #' @inheritParams F_emerge #' @return a [numeric] vector of length `nHabitats` #' @export -F_emerge.trivial <- function(t, y, pars, s) { - with(pars$Lpar[[s]], Lambda*season(t)*trend(t)) -} +F_emerge.trivial <- function(t, y, pars, s) {with(pars$Lpar[[s]],{ + emergents = Lambda*F_season(t)*F_trend(t) + return(emergents) +})} #' @title Make parameters for trivial aquatic mosquito model #' @param nHabitats the number of habitats in the model #' @param Lopts a [list] that overwrites default values #' @param Lambda vector of mean emergence rates from each aquatic habitat -#' @param season a function that gives a seasonal pattern -#' @param trend a function that returns a temporal trend +#' @param F_season a function that gives a F_seasonal pattern +#' @param F_trend a function that returns a temporal F_trend #' @return none #' @export create_Lpar_trivial = function(nHabitats, Lopts=list(), - Lambda=1000, season=F_flat, trend=F_flat){ + Lambda=1000, F_season=F_flat, F_trend=F_flat){ with(Lopts,{ Lpar = list() class(Lpar) <- "trivial" Lpar$Lambda = checkIt(Lambda, nHabitats) - Lpar$season = season - Lpar$trend = trend + Lpar$F_season = F_season + Lpar$F_trend = F_trend Lpar$baseline = "trivial" class(Lpar$baseline) = "trivial" return(Lpar) diff --git a/R/human-trivial.R b/R/human-trivial.R index 152a162af..3f468d1b7 100644 --- a/R/human-trivial.R +++ b/R/human-trivial.R @@ -7,7 +7,7 @@ #' @export F_X.trivial <- function(t, y, pars, i) { H = F_H(t, y, pars, i) - X = with(pars$Xpar[[i]], H*kappa*season(t)*trend(t)) + X = with(pars$Xpar[[i]], H*kappa*F_season(t)*F_trend(t)) return(X) } @@ -25,18 +25,18 @@ F_H.trivial <- function(t, y, pars, i) { #' @param Xopts a [list] #' @param kappa net infectiousness #' @param HPop initial human population density -#' @param season a seasonality function -#' @param trend a trend function +#' @param F_season a F_seasonality function +#' @param F_trend a F_trend function #' @return a [list] #' @export create_Xpar_trivial <- function(nPatches, Xopts, kappa=.1, HPop=1, - season=F_flat, trend=F_flat){with(Xopts,{ + F_season=F_flat, F_trend=F_flat){with(Xopts,{ Xpar <- list() class(Xpar) <- c('trivial') Xpar$H = checkIt(HPop, nPatches) Xpar$kappa= checkIt(kappa, nPatches) - Xpar$season = season - Xpar$trend = trend + Xpar$F_season = F_season + Xpar$F_trend = F_trend return(Xpar) })} diff --git a/R/plot-terms.R b/R/plot-terms.R index 6a04f6373..a2ae0397f 100644 --- a/R/plot-terms.R +++ b/R/plot-terms.R @@ -4,39 +4,37 @@ #' @param i the host species index #' @param clrs a vector of colors #' @param llty an integer (or integers) to set the `lty` for plotting -#' @param stable a logical: set to FALSE for `orbits` and TRUE for `stable_orbits` -#' @param add_axes a logical: plot axes only if TRUE +#' @param add a logical: plot axes only if FALSE #' #' @export -xds_plot_EIR <- function(pars, i=1, clrs="black", llty=1, stable=FALSE, add_axes=TRUE){ - - tm = pars$outputs$time +xds_plot_EIR <- function(pars, i=1, clrs="black", llty=1, add=FALSE){ + times = pars$outputs$time EIR = get_EIR(pars, i) - if(add_axes==TRUE){ - plot(tm, EIR, type = "n", + + if(add==FALSE){ + plot(times, 0*times, type = "n", xlab = "Time", ylab = "dEIR", ylim = range(0, EIR)) } - xds_lines_EIR(tm, EIR, pars$nStrata[i], clrs, llty) + xds_lines_EIR(times, EIR, pars$nStrata[i], clrs, llty) } #' Add lines for the EIR *vs.* time #' -#' @param tm the time +#' @param times the time #' @param EIR the entomological inoculation rate #' @param nStrata the number of human / host population strata #' @param clrs a vector of colors #' @param llty an integer (or integers) to set the `lty` for plotting #' #' @export -xds_lines_EIR <- function(tm, EIR, nStrata, clrs="black", llty=1){ - +xds_lines_EIR <- function(times, EIR, nStrata, clrs="black", llty=1){ if(nStrata==1) - graphics::lines(tm, EIR, col=clrs, lty = llty) + graphics::lines(times, EIR, col=clrs, lty = llty) if(nStrata>1){ if(length(clrs)==1) clrs=rep(clrs, nStrata) if(length(llty)==1) llty=rep(llty, nStrata) for(i in 1:nStrata) - graphics::lines(tm, EIR[,i], col=clrs[i], lty = llty) + graphics::lines(times, EIR[,i], col=clrs[i], lty = llty) } } @@ -47,38 +45,19 @@ xds_lines_EIR <- function(tm, EIR, nStrata, clrs="black", llty=1){ #' @param i the host species index #' @param clrs a vector of colors #' @param llty an integer (or integers) to set the `lty` for plotting -#' @param stable a logical: set to FALSE for `orbits` and TRUE for `stable_orbits` -#' @param add_axes a logical: plot axes only if TRUE +#' @param stable a logical: set to FALSE for `orbits` and FALSE for `stable_orbits` +#' @param add a logical: plot axes only if FALSE #' #' @export -xds_plot_aEIR <- function(pars, i=1, clrs="black", llty=1, stable=FALSE, add_axes=TRUE){ - vars=with(pars$outputs,if(stable==TRUE){stable_orbits}else{orbits}) - - tm = vars$terms$time - aEIR = 365*vars$terms$eir[[i]] - if(add_axes==TRUE) - plot(tm, aEIR, type = "n", xlab = "Time", ylab = "aEIR", ylim = range(0, aEIR)) +xds_plot_aEIR <- function(pars, i=1, clrs="black", llty=1, stable=FALSE, add=FALSE){ + times = pars$outputs$time + EIR = get_EIR(pars, i) - xds_lines_aEIR(tm, aEIR, pars$Hpar[[i]]$nStrata, clrs, llty) -} + aEIR = 365*EIR + if(add==FALSE) + plot(times, 0*times, type = "n", xlab = "Time", ylab = "aEIR", ylim = range(0, aEIR)) -#' Add lines for the annualized EIR *vs.* t -#' -#' @param tm the time -#' @param EIR the entomological inoculation rate -#' @param nStrata the number of human / host population strata -#' @param clrs a vector of colors -#' @param llty an integer (or integers) to set the `lty` for plotting -#' -#' @export -xds_lines_aEIR <- function(tm, EIR, nStrata, clrs="black", llty=1){ - aeir = 365*EIR - if(nStrata==1) graphics::lines(tm, aeir, col=clrs) - if(nStrata>1){ - if (length(clrs)==1) clrs=rep(clrs, nStrata) - for(i in 1:nStrata) - graphics::lines(tm, aeir[,i], col=clrs[i]) - } + xds_lines_EIR(times, aEIR, pars$nStrata[i], clrs, llty) } #' Plot the prevalence / parasite rate (PR) from a model of human infection and immunity @@ -87,38 +66,39 @@ xds_lines_aEIR <- function(tm, EIR, nStrata, clrs="black", llty=1){ #' @param i the host species index #' @param clrs a vector of colors #' @param llty an integer (or integers) that specifies `lty` for plotting -#' @param stable a logical: set to FALSE for `orbits` and TRUE for `stable_orbits` -#' @param add_axes a logical: plot axes only if TRUE +#' @param add a logical: plot axes only if FALSE #' #' @export -xds_plot_PR = function(pars, i=1, clrs="black", llty=1, stable=FALSE, add_axes=TRUE){ +xds_plot_PR = function(pars, i=1, clrs="black", llty=1, add=FALSE){ + terms = pars$outputs$orbits$XH[[1]] + times = pars$outputs$time tm = pars$outputs$time - if(add_axes==TRUE){ - plot(tm, 0*tm + 1, type = "n", ylim = c(0,1), + if(add==FALSE){ + plot(times, 0*times, type = "n", ylim = c(0,1), ylab = "Prevalence", xlab = "Time") } - xds_lines_PR(tm, pars$outputs$orbits$XH[[1]]$true_pr, pars$nStrata[i], clrs, llty) + xds_lines_PR(times, terms$true_pr, pars$nStrata[i], clrs, llty) } #' Add lines for the prevalence / parasite rate (PR) from a model of human infection and immunity #' -#' @param tm the time +#' @param times the time #' @param PR the computed parasite rate #' @param nStrata the number of human / host population strata #' @param clrs a vector of colors #' @param llty an integer (or integers) that specifies `lty` for plotting #' #' @export -xds_lines_PR = function(tm, PR, nStrata, clrs="black", llty=1){ +xds_lines_PR = function(times, PR, nStrata, clrs="black", llty=1){ - if(nStrata==1) graphics::lines(tm, PR, col=clrs[1], lty = llty[1]) + if(nStrata==1) graphics::lines(times, PR, col=clrs[1], lty = llty[1]) if(nStrata>1){ if (length(clrs)==1) clrs=rep(clrs, nStrata) if (length(llty)==1) llty=rep(llty, nStrata) for(i in 1:nStrata) - graphics::lines(tm, PR[,i], col=clrs[i], lty = llty[i]) + graphics::lines(times, PR[,i], col=clrs[i], lty = llty[i]) } } diff --git a/R/xds_setup.R b/R/xds_setup.R index 7277923f9..63bb72732 100644 --- a/R/xds_setup.R +++ b/R/xds_setup.R @@ -2,7 +2,7 @@ #' @title Basic Setup: Make a Fully Defined **`xds`** Object #' -#' @description Make a fully defined **`xds`** object: +#' @description Make an **`xds`** *model object*: #' #' - Define the dynamical components: #' - \eqn{\cal XH} - a model for human / host infection dynamics of class **`Xname`** with trivial demographics @@ -10,8 +10,8 @@ #' - \eqn{\cal L} - a model for aquatic mosquito ecology of class **`Lname`** #' - Define basic structural parameters for a single host and vector population: #' - \eqn{n_p} or `nPatches` - the number of patches -#' - \eqn{n_q} or `nHabitats` - the number and locations of aquatic habitats -#' - \eqn{n_h} or `nStrata` - the number of human / host population strata and basic demographic information +#' - \eqn{n_q} or `nHabitats <- length(membership)` - the number and locations of aquatic habitats +#' - \eqn{n_h} or `nStrata <- length(residence)` - the number of human / host population strata and basic demographic information #' - Configure some of the basic elements #' - Search weights for human population strata #' - Search weights for aquatic habitats @@ -53,53 +53,48 @@ #' - vector control, vaccines, or other mass #' @seealso [make_xds_template] #' @param xds is `xde`/`dts` for differential / difference equations -#' @param dlay is either "ode" or "dde" -#' @param MYZname a character string defining a \eqn{\cal MYZ} model #' @param Xname a character string defining a \eqn{\cal X} model +#' @param Xopts a list to configure the X model +#' @param MYZname a character string defining a \eqn{\cal MYZ} model +#' @param MYZopts a list to configure the MYZ model #' @param Lname a character string defining a \eqn{\cal L} model +#' @param Lopts a list to configure the L model #' @param nPatches is the number of patches -#' @param membership is a vector that describes the patch where each aquatic habitat is found -#' @param residence is a vector that describes the patch where each human stratum lives #' @param HPop is the number of humans in each patch -#' @param Xday is the run-time time step for X component (in days): integer or 1/integer -#' @param MYZday is the run-time time step for MYZ component (in days): integer or 1/integer -#' @param Lday is the run-time time step for L component (in days): integer or 1/integer +#' @param residence is a vector that describes the patch where each human stratum lives +#' @param membership is a vector that describes the patch where each aquatic habitat is found #' @param searchB is a vector of search weights for blood feeding #' @param TimeSpent is either a TimeSpent matrix or a string to call a function that sets it up #' @param calK is either a calK matrix or a string that defines how to set it up #' @param searchQ is a vector of search weights for egg laying -#' @param MYZopts a list to configure the MYZ model -#' @param Xopts a list to configure the X model -#' @param Lopts a list to configure the L model +#' @param dlay is either "ode" or "dde" +#' @param Xday is the run-time time step for X component (in days): integer or 1/integer +#' @param MYZday is the run-time time step for MYZ component (in days): integer or 1/integer +#' @param Lday is the run-time time step for L component (in days): integer or 1/integer #' @param BFopts a list to configure the blood feeding model #' @param model_name is a name for the model (arbitrary) #' @return an **`xds`** object #' @export -xds_setup = function(xds = 'xde', dlay = 'ode', - ### Dynamical Components - MYZname = "RM", +xds_setup = function(xds = 'xde', Xname = "SIS", + Xopts = list(), + MYZname = "RM", + MYZopts = list(), Lname = "trivial", - ### Model Structure + Lopts = list(), nPatches = 1, - membership=1, - residence=1, - HPop=1000, - ### Runtime Time parameters - Xday = 1, - MYZday = 1, - Lday = 1, - ### Setup Parameters + HPop = 1000, + residence = 1, + membership = 1, searchB = 1, TimeSpent = list(), - calK = list(), + calK = list(), searchQ = 1, - ### Options - MYZopts = list(), - Xopts = list(), - Lopts = list(), + Xday = 1, + MYZday = 1, + Lday = 1, BFopts = list(), - ### Name + dlay = 'ode', model_name = "unnamed" ){ stopifnot(length(HPop) == length(residence)) @@ -326,9 +321,11 @@ xds_setup_aquatic = function(xds = 'xde', dlay = 'ode', #' @param model_name a name for the model #' @return an **`xds`** object #' @export -xds_setup_human = function(xds = 'xde', dlay = 'ode', +xds_setup_human = function(Xname = "SIS", + Xopts = list(), + + xds = 'xde', dlay = 'ode', ### Dynamical Components - Xname = "SIS", ### Model Structure nPatches=1, residence=1, @@ -339,7 +336,6 @@ xds_setup_human = function(xds = 'xde', dlay = 'ode', TimeSpent = list(), ### Options MYZopts = list(), - Xopts = list(), BFopts = list(), ### Name model_name = "unnamed" diff --git a/README.md b/README.md index 41e592d7e..b4eaaede5 100644 --- a/README.md +++ b/README.md @@ -19,17 +19,17 @@ Also see the related vignette [*Getting Started*](https://dd-harp.github.io/ramp ## What is RAMP? -RAMP -- **R**obust **A**nalytics for **M**alaria **P**olicy -- is a bespoke inferential system for malaria decision support and adaptive malaria control. A core goal for RAMP is to characterize, quantify, and propagate uncertainty in conventional analysis and through simulation-based analytics. +RAMP -- **R**obust **A**nalytics for **M**alaria **P**olicy -- describes bespoke inferential systems for malaria decision support and adaptive malaria control that go to great lengths to characterize, quantify, and propagate uncertainty. RAMP includes conventional analysis and simulation-based analytics. ## What is **`ramp.xds`**? -**`ramp.xds`** is an R software package that supports nimble model building for simulation-based analytics and malaria research. It was designed to help research scientists and policy analysts set up, analyze, solve, and use dynamical systems models describing the epidemiology, spatial transmission dynamics, and control of malaria and other mosquito-transmitted pathogens. The software also supports nimble model building and analysis for mosquito ecology, with the capability to handle forcing by weather and other exogenous variables. +**`ramp.xds`** is an R software package that supports nimble model building for simulation-based analytics and malaria research. The software was designed to help research scientists and policy analysts set up, analyze, solve, and use dynamical systems models describing the epidemiology, spatial transmission dynamics, and control of malaria and other mosquito-transmitted pathogens. The software also supports nimble model building and analysis for mosquito ecology, with the capability to handle forcing by weather and other exogenous variables. -**`ramp.xds`** has been designed to serve the needs of malaria programs, where mathematical models are used for decision support and adaptive malaria control in a defined geographical area. Mechanistic models describing malaria transmission in a place that have been fitted to available data and that have quantified uncertainty are a synthesis of malaria intelligence. In this formulation, the models can facilitate complex analysis, extending our innate mental capabilities. As the needs of a malaria program changes, the models can be modified -- simplified or extended -- to serve the tasks at hand. +**`ramp.xds`** has been designed to serve the needs of malaria programs, where mathematical models are used for decision support and adaptive malaria control in a defined geographical area. Mechanistic models that have been fitted to data describing malaria in a place provide a synthesis of *malaria intelligence.* These models can facilitate complex analysis, extending our innate mental capabilities. By characterizing and quantifying uncertainty, and then propagating the uncertainty through the analysis, simulation-based analytics serve as a platform for giving robust policy advice and for adaptive malaria control. As the needs of a malaria program changes, the models can be modified -- simplified or extended -- to serve the tasks at hand. **`ramp.xds`** was developed to apply malaria theory: it outputs standard, observable malaria metrics, and it easily solve dynamical systems, computes steady states and stable orbits, and computes the spatio-temporal vectorial capacity and the basic and adjusted reproductive numbers for malaria parasites. -*** +## A Software Ecosystem for Robust, Simulation-based Analytics **`ramp.xds`** is part of a suite of R packages developed to support RAMP: diff --git a/_pkgdown.yml b/_pkgdown.yml index c93608901..18e5e98ba 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -12,23 +12,17 @@ navbar: - text: Understanding ramp.xds href: articles/Understanding_ramp.xds.html - text: Modular Forms for Disease Dynamics - href: articles/modularity.html + href: articles/modular_forms.html - text: 5-3-4 Spatial Example href: articles/ex_534.html - text: Spatial Metrics href: articles/spat_metric.html - text: Vector Control Example href: articles/vc_lemenach.html - - text: Contributing - href: articles/Contributing.html - text: Heterogeneous Transmission href: articles/heterogeneous_transmission.html - - text: Heterogeneous Biting - href: articles/heterogeneous_biting.html - - text: Heterogeneous Mixing - href: articles/heterogeneous_mixing.html - - text: Environmental Heterogeneity - href: articles/environmental_heterogeneity.html + - text: Contributing + href: articles/Contributing.html - text: Mosquito - Adult menu: - text: Adult Mosquitoes @@ -42,7 +36,7 @@ navbar: - text: Mosquito - Aquatic menu: - text: Aquatic - Trivial (forced) model - href: articles/aqua_trivial.html + href: articles/aqua_trace.html - text: Basic Competition href: articles/aqua_basic.html - text: Human / Host @@ -1030,9 +1024,8 @@ reference: Basic visualization of the transmission terms contents: - xds_plot_EIR - - xds_lines_EIR - xds_plot_aEIR - - xds_lines_aEIR + - xds_lines_EIR - xds_plot_PR - xds_lines_PR - title: Functions and Utilities diff --git a/docs/404.html b/docs/404.html index f2bcd65cb..49abf72c9 100644 --- a/docs/404.html +++ b/docs/404.html @@ -58,7 +58,7 @@ Understanding ramp.xds
  • - Modular Forms for Disease Dynamics + Modular Forms for Disease Dynamics
  • 5-3-4 Spatial Example @@ -69,20 +69,11 @@
  • Vector Control Example
  • -
  • - Contributing -
  • Heterogeneous Transmission
  • - Heterogeneous Biting -
  • -
  • - Heterogeneous Mixing -
  • -
  • - Environmental Heterogeneity + Contributing
  • @@ -115,7 +106,7 @@ @@ -116,7 +107,7 @@