dendrify2: Expandsion of item responses based on an item resonse tree

Description Usage Arguments Author(s) References See Also Examples

View source: R/dendrify2.R

Description

Expands a wide-form matrix of item responses based on an item response tree structure

Usage

1
2
## S3 method for class 'flirt'
dendrify2(mat, cmx, missing.omit=FALSE, wide=FALSE)

Arguments

mat

an integer matrix of IRT responses (columns represent items, rows represent respondents)

cmx

a mapping matrix with as many rows as there are response options for the items

missing

for a long-form data, the data lines with a missing item response are removed

wide

If TRUE, expanded data are provided in a wide form

Author(s)

Minjeong Jeon <jeon.117@osu.edu>

References

De Boeck, P. and Partchev, I. (2012). IRTrees: Tree-Based Item Response Models of the GLMM Family, Journal of Statistical Software 48, 1-8.

Jeon, M. and De Boeck, P. (2015). A generalized item response tree model for psychological assessments. Under revision.

See Also

flirt

Examples

1
2
3
4
5
6
7
8
9
library(flirt)

## verbal aggression data

data(verb2)

# expand the data based on a tree structure (mapping matrix)
mapping <- cbind(c(0, 1, 1), c(NA, 0, 1))
wide <- dendrify2(verb2, mapping, wide=TRUE)    

seonghobae/flirt.x32 documentation built on May 29, 2019, 6:54 p.m.