Learn R Programming

landsepi (version 1.1.2)

setInoculum: Set inoculum

Description

Updates a LandsepiParams 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.

Usage

setInoculum(params, val = 5e-04)

Value

a LandsepiParams object

Arguments

params

a LandsepiParams object.

val

a numeric value (default = 5e-4). Must be between 0 and 1.

Examples

Run this code
if (FALSE) {
simul_params <- createSimulParams()
simul_params <- setInoculum(simul_params, 1E-3)
simul_params@PI0
}

Run the code above in your browser using DataLab