Learn R Programming

MLDS (version 0.1-5)

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 class 'mlds':
logLik(object, ...)

Arguments

object
an object of class mlds typically from a call to mlds
...
for passing additional parameters, but is currently not used.

Value

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

Examples

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

Run the code above in your browser using DataLab