Prepare blocks of items and incorporate information about which item belongs to which trait
set_block(items, traits, names = items, signs = 1)empty_block()
empty_block()
Names of item comparisons to be combined into one block. Should correspond to variables in the data.
Names of the traits to which each item belongs
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.
Expected signs of the item loadings (1 or -1).
# 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 DataCamp Workspace