getKappaFun: Estimate Death Rate

Description Usage Arguments Value Author(s) References See Also

View source: R/getKappaFun.R

Description

This function provides a first estimate of the death rate, to faciliate convergence of the main algorithm.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
getKappaFun(
  tTarget,
  Q,
  D,
  guess,
  ftol,
  ptol,
  gtol,
  epsfcn,
  factor,
  maxfev,
  maxiter,
  nprint,
  trace
)

Arguments

tTarget

time vector

Q

target time-histories of the quarantined cases

D

target time-histories of the dead cases

guess

initial guess parameters for kappa

ftol

nls.lm.control object. non-negative numeric. Default is 1e-6

ptol

nls.lm.control object. non-negative numeric. Default is 1e-6

gtol

nls.lm.control object. non-negative numeric. Default is 1e-6

epsfcn

nls.lm.control object. Default is 0.001

factor

nls.lm.control object. Default is 100

maxfev

nls.lm.control object. Default is 1000

maxiter

nls.lm.control object. Default is 100

nprint

nls.lm.control object. Default is 1

trace

Set TRUE to trace iteration results

Value

vector of estimation and optimization function for the death 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.