patch: Constructor for patch class

View source: R/patch.R

patchR Documentation

Constructor for patch class

Description

Build a patch with seir compartments and patch-specific birth and death rates

Usage

patch(s_patch, e_patch, i_patch, r_patch, birth_rate, death_rate,
  transmission_rate, infection_rate, recovery_rate)

Arguments

s_patch

Number of susceptible individuals in patch

e_patch

Number of exposed individuals in patch

i_patch

Number of infected individuals in patch

r_patch

Number of recovered individuals in patch

birth_rate

Birth rate for this patch. Number of births per unit time

death_rate

Death rate for this patch. Number of deaths per unit time in this patch

transmission_rate

effective contact rate

infection_rate

rate of moving from compartment E to I

recovery_rate

rate of moving from compartment I to R.

Value

a list of class patch which has the following items ** susceptible ** Number of susceptibles in this patch ** exposed ** Number of exposed individuals in this patch ** infected ** Number of infected individuals in this patch ** recovered ** Number of recovered individuals in this patch ** birth_rate ** Patch-specific birth rate ** death_rate ** Patch-specific death rate ** transmission_rate ** Effective contact rate for this patch ** Infection rate ** Rate at which individuals move from E to I ** Recovery rate ** Rate at which individuals move from I to R.

Author(s)

Sangeeta Bhatia


sangeetabhatia03/multipatchr documentation built on Aug. 13, 2024, 4:05 p.m.