fitSEIR

Fits a SEIR epidemic model to data and simulates the course of the epidemic.

You are now following this Submission

This set of functions is designed to fit a SEIR epidemic model to data and simulate the course of the epidemic. It includes the possibility of time-dependent transmission and mortality rates. For a full description of the model see: https://www.medrxiv.org/content/10.1101/2020.06.12.20129429v1
Originally, the functions were designed for the covid-19 pandemic of 2020 in a per country basis. However, nothing prevents them to work with other data. The model assumes permanent immunity after recovery. There is no age or spatial structure.
It includes a help in PDF.

Cite As

Francisco de Castro (2026). fitSEIR (https://www.mathworks.com/matlabcentral/fileexchange/77428-fitseir), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.4

Solve problem with getting John Hopkins Univ. data

1.0.3

Corrected error with fminsearchbnd

1.0.2

Corrected error in fitseir.m that prevented to use lsqcurvefit.

1.0.1

Added missing function. Improved handling in case previous models don't exist.

1.0.0