fitVirusCV19varW (Variable weight fitting of SIR Model)
This code will retrieve recent data from the HDX and attempt to fit it to a SIR model using structure created by Milan Batista (https://www.mathworks.com/matlabcentral/fileexchange/74658-fitviruscovid19?s_tid=prof_contriblnk). 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:
fitVirusCV19varW(“Italy",'prn','on')
The plot may be enabled or disabled via (default is on):
fitVirusCV19varW(“Italy",'plt','off')
Citation pour cette source
Lateef Adewale Kareem (2024). fitVirusCV19varW (Variable weight fitting of SIR Model) (https://www.mathworks.com/matlabcentral/fileexchange/74977-fitviruscv19varw-variable-weight-fitting-of-sir-model), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- Sciences > Biological and Health Sciences >
- Sciences > Biological and Health Sciences > Epidemiology >
Tags
Remerciements
Inspiré par : fitVirusCV19v3 (COVID-19 SIR Model), fitVirusCOVID19, fminsearchbnd, fminsearchcon
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.2 | change image |
||
1.0.1 | acknowledged the use of fminsearchbnd by John D'Errico |
||
1.0.0 |