fitVirusCV19varW (Variable weight fitting of SIR Model)

Estimation of coronavirus COVID-19 epidemic evaluation by the SIR model, Code receives and plots most recent data from HDX.
104 download
Aggiornato 12 apr 2020

Visualizza la licenza

This code will retrieve recent data from the HDX and attempt to fit it to a SIR model using structure created by Milan Batista ( The model is data-driven, so its forecast is as good as data are.

This model gives more weight to the most recent data so that the most recent behaviours of people such as social distancing, stay at home and personal hygiene quickly reflect in the fitted SIR model parameters.

Also, it is assumed that the model is a reasonable description of the one-stage epidemic.

Results are saved in structure res (see function fiVirusCV19 header). Optionally the results may be printed by:


The plot may be enabled or disabled via (default is on):

Cita come

Lateef Adewale Kareem (2024). fitVirusCV19varW (Variable weight fitting of SIR Model) (, MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2020a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Scopri di più su Biological and Health Sciences in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release

change image


acknowledged the use of fminsearchbnd by John D'Errico