View source: R/Methods-LandsepiParams.R
setInoculum | R Documentation |
Updates a LandsepiParams object with the initial probability for the first host (whose index is 0) to be infectious (i.e. state I) at the beginning of the simulation.
setInoculum(params, val = 5e-04)
params |
a LandsepiParams object. |
val |
a numeric value (default = 5e-4). Must be between 0 and 1. |
a LandsepiParams object
## Not run:
simul_params <- createSimulParams()
simul_params <- setInoculum(simul_params, 1E-3)
simul_params@PI0
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.