WtoW_multi.tree {irtrees} | R Documentation |
Wide-to-wide, multiple trees
Description
Recode a wide format data frame to a wide format IRTRees data frame in the case when items may have different tree structures
Usage
WtoW_multi.tree(
data,
cmx_list,
id.col = NULL,
resp.col_list,
covar.col = NULL,
time.col = NULL
)
Arguments
data |
a wide-format (person-by-item) data set |
cmx_list |
a list including all tree structures |
id.col |
the ID column |
resp.col_list |
a list of vectors, with a length matching the length of |
covar.col |
columns containing covariates |
time.col |
the time column when there are repeated (longitudinal) data |
Details
Many examples of mapping matrices are given in the vignette. Columns may be specified by numeric index or by name. Response categories must be coded with consecutive integers starting from 1, not 0. Missing data should be properly represented as NA.
[Package irtrees version 1.0.0 Index]