Description Usage Arguments Details
Recode a wide format data frame to a long format IRTrees data frame in the case when all items have the same tree structure
1 2 3 4 5 6 7 8 | WtoL_single.tree(
data,
cmx,
id.col,
resp.col,
covar.col = NULL,
time.col = NULL
)
|
data |
a wide-format (person-by-item) data set |
cmx |
a a category-by-node mapping matrix |
id.col |
the ID column |
resp.col |
the columns containing the item responses |
covar.col |
columns containing covariates |
time.col |
the time column when there are repeated (longitudinal) data |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.