GetDataFromMirt: Function to extract the (non-fake) item data set from a mirt...

View source: R/GetDataFromMirt.R

GetDataFromMirtR Documentation

Function to extract the (non-fake) item data set from a mirt object

Description

Extracts the data frame used for model fitting from within a 'mirt' object. This function will automatically remove any rows of fake data added by the augmentdata function.

Usage

GetDataFromMirt(mirtobj)

Arguments

mirtobj

An estimated IRT model (of class SingleGroupClass) estimated either using the function "unimirt" or by applying the function "mirt" directly.

Value

A matrix of item data.

Examples

## Not run: 
smallmirt=unimirt(mathsdata[1:10,15:20],"Rasch")
smallmirt@Data$data
GetDataFromMirt(smallmirt)

## End(Not run)

CambridgeAssessmentResearch/unimirt documentation built on June 10, 2025, 6:03 a.m.