Description Usage Arguments Value
Calculate the sum of squared residuals for a gompertz curve, given a vector of observed total deaths.
1 | get_residual(time, obs, lambda, mu, a)
|
time |
Integer. A vector of one or more values, counted as the number of days. |
obs |
Numeric. A vector of obseverd total deaths. It must be of the same length as |
lambda |
Numeric. A single value for the lambda parameter in the gompertz equation. |
mu |
Numeric. A single value for the mu parameter in the gompertz equation. |
a |
Numeric. A single value for de alpha parameter in the gompertz equation. |
Numeric. A single value, representing the sum of squared residuals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.