Learn R Programming

mirt (version 0.1-13)

logLik: Monte Carlo Log-Likelihood Calculation

Description

Calculate new objects 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 = 3000, G2 = TRUE)

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

Arguments

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

Value

  • returns an object of polymirt or confmirt with the log-likelihood and standard error.

Examples

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

Run the code above in your browser using DataLab