Learn R Programming

mirt (version 0.1-19)

logLik: Monte Carlo Log-Likelihood Calculation

Description

Calculates a new object that contain the Monte Carlo estimated observed log-likelihood values for polymirt and confmirt objects

Usage

logLik(object, ...)

## S3 method for class 'polymirt':
logLik(object, draws = 2000, G2 = TRUE)

## S3 method for class 'confmirt':
logLik(object, draws = 2000, G2 = TRUE)

Arguments

object
a model of class mirtClass or bfactorClass
draws
the number of Monte Carlo draws
G2
logical; estimate the G2 model fit statistic?
...
parameters that are passed

Value

  • Returns an object of class polymirtClass or confmirtClass with the log-likelihood, standard error, and (possibly) the G^2 model fit statistic.

Examples

Run this code
mod1withLogLik <- logLik(mod1, draws = 5000)

Run the code above in your browser using DataLab