augmentdata: Augment existing item data

View source: R/augmentdata.R

augmentdataR Documentation

Augment existing item data

Description

This function first checks if there are any missing categories between 0 and the max available for each item in a data set. For each missing category, an additional row is added to the data with missing values for all items except the one with the missing category and with the value for this item set equal to the missing category. Using augmented data provides an alternative to the default behaviour of "mirt" where items are entirely rescored to remove missing categories. The augmented data approach can help facilitate later analyses such as selecting a number of items with an overall total number of marks fixed at some level (see runItemSelectionApp). Provided that a reasonably large amount of data is being analysed and very little data is being added to augment the data set, this step should have minimal impact upon estimated item parameters.

Usage

augmentdata(data)

Arguments

data

A data frame containing information about all the items.

Value

A data frame with additional rows of augmented data (if necessary) and an attribute "fakedata" indicating the rows in the data frame that have been added in.

Examples

aug1=augmentdata(mathsdata[1:10,15:20])
aug1
attributes(aug1)

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