Extracts the used data set for models fitted in TAM. See CDM::IRT.data for more details.

# S3 method for tam.mml
IRT.data(object, ...)

# S3 method for tam.mml.3pl
IRT.data(object, ...)

# S3 method for tamaan
IRT.data(object, ...)

Arguments

object

Object of class tam, tam.mml, tam.mml.3pl or tamaan.

...

Further arguments to be passed

Value

A dataset with item responses

Examples

if (FALSE) {
#############################################################################
# EXAMPLE 1: Dichotomous data data.sim.rasch
#############################################################################

data(data.sim.rasch)
dat <- data.sim.rasch

# estimate model
mod1 <- TAM::tam.mml(dat)
# extract dataset (and weights and group if available)
dmod1 <- IRT.data(mod1)
str(dmod1)
}