This function compares the fitted and calculated death and recovered ratios. The idea is to check whether the approximation of these ratios is appropriate.
checkRates(time, Q, R, D, kappaFun, lambdaFun, kappa, lambda, dt = 1)time vector
time histories of the quarantined/active cases
time histories of the recovered cases
time histories of the deceased cases
anonymous function approximating the death rate
anonymous function approximating the recovery rate
mortality rate
cure rate
a time step, default is 1/24. This oversample time to ensure that the algorithm converges.
plots for death rate and recovery rate
Peng, L., Yang, W., Zhang, D., Zhuge, C., Hong, L. 2020. <U+201C>Epidemic analysis of COVID-19 in China by dynamical modeling<U+201D>, arXiv preprint arXiv:2002.06563.