View source: R/category_collapsing.R
recategorize | R Documentation |
With a recategorization scheme as an input, this function implements recategorization for the input data.
recategorize(data, new_cat)
data |
An item response matrix. |
new_cat |
A list of a new categorization scheme. |
Recategorized data
Seewoo Li cu@yonsei.ac.kr
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.