checkRates: Check Rates

Description Usage Arguments Value Author(s) References See Also

View source: R/checkRates.R

Description

This function compares the fitted and calculated death and recovered ratios. The idea is to check whether the approximation of these ratios is appropriate.

Usage

1
checkRates(time, Q, R, D, kappaFun, lambdaFun, kappa, lambda, dt = 1)

Arguments

time

time vector

Q

time histories of the quarantined/active cases

R

time histories of the recovered cases

D

time histories of the deceased cases

kappaFun

anonymous function approximating the death rate

lambdaFun

anonymous function approximating the recovery rate

kappa

mortality rate

lambda

cure rate

dt

a time step, default is 1/24. This oversample time to ensure that the algorithm converges.

Value

plots for death rate and recovery rate

Author(s)

Selcuk Korkmaz, selcukorkmaz@gmail.com

References

Peng, L., Yang, W., Zhang, D., Zhuge, C., Hong, L. 2020. “Epidemic analysis of COVID-19 in China by dynamical modeling”, arXiv preprint arXiv:2002.06563.

https://www.mathworks.com/matlabcentral/fileexchange/74545-generalized-seir-epidemic-model-fitting-and-computation

See Also

SEIQRDP fit_SEIQRDP


genSEIR documentation built on July 12, 2021, 5:07 p.m.