Learn R Programming

autoFC (version 0.2.0.1002)

build_TIRT_var_names: Build Variable Names for the Pairwise/Rank Responses in the TIRT Model

Description

This function builds the variable names that corresponds to the pairwise comparisons or ranks among items within each block.

Usage

build_TIRT_var_names(
  item_name = "i",
  block_size,
  N_blocks,
  format = "pairwise"
)

Value

A vector of variable names

Arguments

item_name

The prefix you want to have for your response variables.

block_size, N_blocks

The block size and total number of the forced-choice scale.

format

What format should the converted responses be in? Can be "pairwise" or "ranks".

Author

Mengtong Li

Details

Choose the correct item_name so that they are consistent with the item names in the data frame storing information of the items.

See Also

get_TIRT_long_data()

Examples

Run this code
build_TIRT_var_names("i", block_size = 3, N_blocks = 20, format = "pairwise")
build_TIRT_var_names("i", block_size = 5, N_blocks = 12, format = "ranks")


Run the code above in your browser using DataLab