Learn R Programming

MLDS (version 0.5.1)

logLik.mlds: Compute Log-Likelihood for an mlds object

Description

This function provides a method for extracting the log likelihood from an object of class ‘mlds’.

Usage

# S3 method for mlds
logLik(object, ...)
# S3 method for mlbs
logLik(object, ...)

Value

An object of class ‘logLik’ whose value is the logarithm of the likelihood with attribute df providing the degrees of freedom

Arguments

object

an object of class ‘mlds’ or ‘mlbs’typically from a call to mlds

...

for passing additional parameters, but is currently not used.

Author

Kenneth Knoblauch

Examples

Run this code
data(kk1)
logLik(mlds(SwapOrder(kk1)))

Run the code above in your browser using DataLab