Description Usage Arguments Details Value Examples
Provides methods for the generic function logLik
.
1 2 3 4 5 6 7 8 9 10 | ## S3 method for class 'dthmm'
logLik(object, fortran=TRUE, ...)
## S3 method for class 'mmglm0'
logLik(object, fortran=TRUE, ...)
## S3 method for class 'mmglm1'
logLik(object, fortran=TRUE, ...)
## S3 method for class 'mmglmlong1'
logLik(object, fortran=TRUE, ...)
## S3 method for class 'mmpp'
logLik(object, fortran=TRUE, ...)
|
object |
an object with class |
fortran |
logical, if |
... |
other arguments. |
The methods provided here will always recalculate the log-likelihood even if it is already contained within the object
. This enables the user to change parameter or data values within the object
and recalculate the log-likelihood for the revised configuration.
The code for the methods "dthmm"
, "mmglm0"
, "mmglm1"
,"mmglmlong1"
and "mmpp"
can be viewed by appending logLik.dthmm
, logLik.mmglm0
, logLik.mmglm1
, logLik.mmglmlong1
or logLik.mmpp
, respectively, to HiddenMarkov:::
, on the R command line; e.g. HiddenMarkov:::dthmm
. The three colons are needed because these method functions are not in the exported NAMESPACE.
Returns the value of the log-likelihood.
1 2 3 4 5 6 7 8 9 10 11 |
[1] -190.7504
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.