Learn R Programming

mpt (version 0.3-0)

logLik.mpt: Log-Likelihood of an mpt Object

Description

Returns the log-likelihood value of the (joint) multinomial processing tree model represented by object evaluated at the estimated parameters.

Usage

## S3 method for class 'mpt':
logLik(object, \dots)

Arguments

object
an object inheriting from class mpt, representing a fitted multinomial processing tree model.
...
some methods for this generic require additional arguments. None are used in this method.

Value

  • The log-likelihood of the model represented by object evaluated at the estimated parameters.

See Also

mpt, logLik.lm, AIC.

Examples

Run this code
dat <- data.frame(freq = c(243, 64, 58, 55))  # from Riefer et al. (2002)
mpt1 <- mpt(freq ~ list(
  c*r,
  (1 - c)*u^2,
  2*(1 - c)*u*(1- u),
  c*(1 - r) + (1 - c)*(1 - u)^2),
dat)

logLik(mpt1)
AIC(mpt1)

Run the code above in your browser using DataLab