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

# S3 method for mpt
logLik(object, ...)

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

Examples

m <- mpt(mptspec("SR2"), c(243, 64, 58, 55))  # from Riefer et al. (2002)
logLik(m)
#> 'log Lik.' -8.600947 (df=3)
deviance(m)
#> G2 
#>  0 
AIC(m)
#> [1] 23.20189
AIC(m, k = log(sum(m$y)))  # BIC w/total number of data points
#> [1] 35.32266
BIC(m)                     # BIC using nobs()
#> [1] 20.49773
nobs(m)                    # number of non-redundant response categories
#> [1] 3