View source: R/MortalityLaw_main.R
objective_fun | R Documentation |
Function to be Optimize
objective_fun(par, x, Dx, Ex, mx, qx, law, opt.method, custom.law)
x |
Vector of ages at the beginning of the age interval. |
Dx |
Object containing death counts. An element of the |
Ex |
Exposure in the period. |
mx |
Life table death rate in age interval [x, x+n). |
qx |
Probability of dying in age interval [x, x+n). |
law |
The name of the mortality law/model to be used. e.g.
|
opt.method |
How would you like to find the parameters? Specify the
function to be optimize. Available options: the Poisson likelihood function
|
custom.law |
Allows you to fit a model that is not defined in the package. Accepts as input a function. |
The optimal value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.