set_block: Prepare blocks of items

View source: R/data-helpers.R

set_blockR Documentation

Prepare blocks of items

Description

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.

Usage

set_block(items, traits, names = items, signs = 1)

empty_block()

Arguments

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).

See Also

set_blocks_from_df

Examples

set_block(
  items = c("i1", "i2", "i3"),
  traits = c("A", "B", "C")
) +
set_block(
  items = c("i4", "i5", "i6"),
  traits = c("A", "B", "C")
)


thurstonianIRT documentation built on Aug. 22, 2023, 5:08 p.m.