like
Calculate likelihood
Description
Calculate the negative log likelihood of a parameterization.
Usage
like(para, model=NULL, data=NULL)
Required Arguments
- para
-
A vector of parameters.
Optional Arguments
- model
-
An object of class TSmodel which gives the structure of the model to which
para is applied. model$parms should be the same length as para. If model is not
supplied like looks for a globally defined object Obj.Func.ARGS with an
element named model, which should be a TSmodel.
- data
-
An object of class TSdata which gives the data with which the model is
to be evaluated. If data is not
supplied like looks for a globally defined object Obj.Func.ARGS with an
element named data, which should be TSdata.
Value
The result is the negative of the log of the likelihood function.
Details
This function is primarily for use in parameter optimization,
which requires that an objective function be specified by a vector
of parameters. The default usage relies on globally defined variables Shape and
Data to define the model and evaluate it.
See Also
Examples
return to Table of Contents