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

View source: R/build_TIRT_var_names.R

build_TIRT_var_namesR Documentation

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

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

Details

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

Value

A vector of variable names

Author(s)

Mengtong Li

See Also

get_TIRT_long_data()

Examples

build_var_names("i", block_size = 3, N_blocks = 20, format = "pairwise")
build_var_names("i", block_size = 5, N_blocks = 12, format = "ranks")



tspsyched/autoFC documentation built on Oct. 8, 2024, 10:39 p.m.