neslat: Example Data: Nested Hierarchical Categories

Description Format References Examples

Description

Simulated example data set for a model with nested hierarchical latent variables.

Format

An IRT response matrix with 300 persons and 30 binary 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
4
str(neslat)
str(neslatT <-
    exogenize(neslat, cbind(c(1,1,1), c(1,0,0), c(0,1,0), c(0,0,1)), 
	endnode=rep(1:3, each = 10)))

Example output

 num [1:300, 1:30] 0 0 0 0 0 1 1 0 0 0 ...
'data.frame':	9000 obs. of  8 variables:
 $ value  : num  0 0 0 0 0 1 1 0 0 0 ...
 $ item   : Factor w/ 30 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 ...
 $ endnode: Factor w/ 3 levels "1","2","3": 1 1 1 1 1 1 1 1 1 1 ...
 $ exo1   : num  1 1 1 1 1 1 1 1 1 1 ...
 $ exo2   : num  1 1 1 1 1 1 1 1 1 1 ...
 $ exo3   : num  0 0 0 0 0 0 0 0 0 0 ...
 $ exo4   : num  0 0 0 0 0 0 0 0 0 0 ...

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