ModelSEIRNetworkQuarantine#
- class epiworldpy.epimodels.ModelSEIRNetworkQuarantine(self: epiworldpy._core.epimodels.ModelSEIRNetworkQuarantine, vname: str, prevalence: SupportsFloat | SupportsIndex, transmission_rate: SupportsFloat | SupportsIndex, avg_incubation_days: SupportsFloat | SupportsIndex, recovery_rate: SupportsFloat | SupportsIndex, hospitalization_rate: SupportsFloat | SupportsIndex, hospitalization_period: SupportsFloat | SupportsIndex, days_undetected: SupportsFloat | SupportsIndex, quarantine_period: SupportsInt | SupportsIndex, quarantine_willingness: SupportsFloat | SupportsIndex, isolation_willingness: SupportsFloat | SupportsIndex, isolation_period: SupportsInt | SupportsIndex, contact_tracing_success_rate: SupportsFloat | SupportsIndex = 1.0, contact_tracing_days_prior: SupportsInt | SupportsIndex = 4)#
Bases:
ModelSEIR model on a network, with quarantine, isolation, hospitalization, and contact tracing.
Like
ModelSEIRMixingQuarantine, but contacts are the agents’ neighbors in the network (for example, one built withagents_sbm()) instead of a contact matrix.States:
Susceptible,Exposed,Infected,Isolated,Detected Hospitalized,Quarantined Susceptible,Quarantined Exposed,Isolated Recovered,Hospitalized,Recovered.The model has no agents until a population is added, for example with
agents_smallworld().Create a SEIR network model with quarantine.
- Parameters:
vname (str) – Name of the virus.
prevalence (float) – Initial proportion of agents with the virus.
transmission_rate (float) – Probability of transmission per contact, between 0 and 1.
avg_incubation_days (float) – Average number of days in the exposed state; greater than 0.
recovery_rate (float) – Daily probability of recovery, between 0 and 1.
hospitalization_rate (float) – Daily probability that an infected agent is hospitalized.
hospitalization_period (float) – Average number of days in the hospital.
days_undetected (float) – Average number of days an infection goes undetected.
quarantine_period (int) – Number of days in quarantine. A negative value turns quarantine off.
quarantine_willingness (float) – Proportion of agents willing to quarantine.
isolation_willingness (float) – Proportion of agents willing to isolate.
isolation_period (int) – Number of days in isolation. A negative value turns isolation off.
contact_tracing_success_rate (float, default 1.0) – Probability that a contact is traced.
contact_tracing_days_prior (int, default 4) – Number of days before detection during which contacts are traced.