thurstonianIRT (version 0.9.0)

set_block: Prepare blocks of items

Description

Prepare blocks of items and incorporate information about which item belongs to which trait

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

Examples

Run this code
# NOT RUN {
set_block(
  items = c("i1", "i2", "i3"),
  traits = c("A", "B", "C")
) +
set_block(
  items = c("i4", "i5", "i6"),
  traits = c("A", "B", "C")
)

# }

Run the code above in your browser using DataLab