linresp: Example Data: Linear Hierarchical Categories

Description Format References Examples

Description

Simulated example data set with linear hierarchical categories.

Format

An IRT response matrix with 300 persons and 10 three-category items.

References

De Boeck, P. and Partchev, I. (2012). IRTrees: Tree-Based Item Response Models of the GLMM Family, Journal of Statistical Software – Code Snippets, 48(1), 1–28. https://www.jstatsoft.org/v48/c01/.

Examples

1
2
3
str(linresp)
mapping <- cbind(c(0,1,1), c(NA,0,1))
str(linrespT <- dendrify(linresp, mapping))

Example output

 num [1:300, 1:10] 2 1 1 2 2 2 2 2 2 1 ...
'data.frame':	5325 obs. of  5 variables:
 $ value : num  1 1 1 1 1 1 1 1 1 1 ...
 $ item  : Factor w/ 10 levels "i01","i02","i03",..: 1 1 1 1 1 1 1 1 1 1 ...
 $ person: Factor w/ 300 levels "p001","p002",..: 1 2 3 4 5 6 7 8 9 10 ...
 $ node  : Factor w/ 2 levels "node1","node2": 1 1 1 1 1 1 1 1 1 1 ...
 $ sub   : Factor w/ 20 levels "i01:node1","i01:node2",..: 1 1 1 1 1 1 1 1 1 1 ...

irtrees documentation built on Dec. 15, 2021, 1:08 a.m.