Learn R Programming

IRTest (version 2.1.0)

recategorize: Recategorization of data using a new categorization scheme

Description

With a recategorization scheme as an input, this function implements recategorization for the input data.

Usage

recategorize(data, new_cat)

Value

Recategorized data

Arguments

data

An item response matrix.

new_cat

A list of a new categorization scheme.

Author

Seewoo Li cu@yonsei.ac.kr

Examples

Run this code
# \donttest{
# Preparation of dichotomous item response data

data <- DataGeneration(N=1000,
                       nitem_P = 8)$data_P

# Analysis

M1 <- IRTest_Poly(data)

# Recommendation of category collapsing

new_cat <- cat_clps(M1$par_est)

# Recategorization of data

recategorize(data, new_cat)
# }

Run the code above in your browser using DataLab