View source: R/summarize_trait_pairs.R
| summarize_trait_pairs | R Documentation |
Analyzes a constructed forced-choice block design and tallies the number of equally-keyed and mixed-keyed pairs for every trait combination.
summarize_trait_pairs(
blocks,
item_chars,
trait_col,
key_col,
block_size = NULL,
output_format = c("wide", "long")
)
blocks |
Either an n-by-k matrix of item IDs (where rows are blocks), or a flat vector of ordered item IDs. |
item_chars |
Data frame containing the item characteristics. |
trait_col |
Character string. Name of the column in |
key_col |
Character string. Name of the column in |
block_size |
Integer. Required only if |
output_format |
Character. Either "wide" (default, cross-tabulated summary)
or "long" (matches the exact data frame format of |
A data frame of the tallied pairs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.