set_block | R Documentation |
Prepare blocks of items and incorporate information about which item belongs to which trait. A block of items is a set of two or more items presented and answered together by fully ranking them or selecting the most and/or least favorit in a forced choice format. A whole test usually contains several blocks and items may reappear in different blocks.
set_block(items, traits, names = items, signs = 1)
empty_block()
items |
Names of item comparisons to be combined into one block. Should correspond to variables in the data. |
traits |
Names of the traits to which each item belongs |
names |
Optional names of the items in the output. Can be used to equate parameters of items across blocks, if the same item was used in different blocks. |
signs |
Expected signs of the item loadings (1 or -1). |
set_blocks_from_df
set_block(
items = c("i1", "i2", "i3"),
traits = c("A", "B", "C")
) +
set_block(
items = c("i4", "i5", "i6"),
traits = c("A", "B", "C")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.