Learn R Programming

TAM (version 4.2-21)

IRT.data.tam: Extracting Item Response Dataset

Description

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

Usage

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

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

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

Value

A dataset with item responses

Arguments

object

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

...

Further arguments to be passed

Examples

Run this code
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)
}

Run the code above in your browser using DataLab