this object represents a likelihood function for
use with mortality data. generally, it will be
the result of combining a likelihood with a hazard;
for example, it could be the binomial model with the gompertz hazard
embedded in it. many of the slots of this object correspond
to those found in mortalityHazard-class
the model's name
the log-likelihood function, which takes as its arguments
a vector of parameter values
vector of deaths by age
vector of exposure by age
vector of ages that corresponds to the entries of Nx
and Dx
the number of parameters in the model
default values for the parameters
if not NULL, a range of plausible values that the parameters can assume
a list of default parameters to pass into R's optim
function
a function which, given values for the parameters and a dataset of exposures, produces predicted numbers of deaths by age. it takes as its arguments:
a vector of parameter values
vector of exposure by age
vector of ages that the Nx
correspond to
the offset used for age
. (See mortalityData-class
.)
if not NULL, a function which takes a mortalityData object and returns very preliminary estimates of the parameters which can then be used in an optimization routine
if not NULL, a function which takes as its arguments:
a vector of parameter values
vector of exposure by age
vector of ages that the Nx
correspond to
if not NULL, the value to seed the pseudorandom number generator with
TODO
if not NULL, a function which produces an evaluation of the model's fit to a given dataset. it takes as its arguments:
the mortalityFit object that resulted from fitting the model to a dataset
the mortalityData object with the observed data
the mortalityPrediction object with fitted values, usually resulting from a call to predict.fn
if not NULL, the mortalityHazard object used in making this mortalityModel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.