setInoculum: Set inoculum

View source: R/Methods-LandsepiParams.R

setInoculumR Documentation

Set inoculum

Description

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.

Usage

setInoculum(params, val = 5e-04)

Arguments

params

a LandsepiParams object.

val

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

Value

a LandsepiParams object

Examples

## Not run: 
simul_params <- createSimulParams()
simul_params <- setInoculum(simul_params, 1E-3)
simul_params@PI0

## End(Not run)

landsepi documentation built on July 26, 2023, 5:36 p.m.