Learn R Programming

serosv (version 1.1.0)

mseir_model: MSEIR model

Description

Refers to section 3.4.

Usage

mseir_model(a, gamma, lambda, sigma, nu)

Value

list of class mseir_model with the following parameters

parameters

list of parameters used for fitting the model

output

matrix of proportion for each compartment over time

Arguments

a

age sequence

gamma

time in maternal class.

lambda

time in susceptible class.

sigma

time in latent class.

nu

time in infected class.

Examples

Run this code
model <- mseir_model(
  a=seq(from=1,to=20,length=500), # age range from 0 -> 20 yo
  gamma=1/0.5, # 6 months in the maternal antibodies
  lambda=0.2,  # 5 years in the susceptible class
  sigma=26.07, # 14 days in the latent class
  nu=36.5      # 10 days in the infected class
)
model

Run the code above in your browser using DataLab