Description Usage Arguments Details
Recode a long format data frame to a wide format IRTRees data frame in the case when items may have different tree structures
1 2 3 4 5 6 7 8 9 10 | LtoW_multi.tree(
data,
cmx_list,
item_list,
id.col,
item.col,
resp.col,
covar.col = NULL,
time.col = NULL
)
|
data |
a long-format (person-item-response) data set |
cmx_list |
a list including all tree structures |
item_list |
a list of vectors, with a length matching the length of |
id.col |
the person ID column |
item.col |
the item ID column |
resp.col |
the response column |
covar.col |
columns containing covariates |
time.col |
the time column. If not NULL, |
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.