convert_TIRT: Convert to thurstonianIRT quads

View source: R/test.R

convert_TIRTR Documentation

Convert to thurstonianIRT quads

Description

Convert thirt responses with 4 items per block to thurstonianIRT data structure

Usage

convert_TIRT(resp, n_item = 4)

Arguments

resp

a list with: (1) data.frame item indicating items, blocks, and dimensions, and (2) data.frame resp indicating people, blocks, response numbers, and response sequences

n_item

an integer indicating number of items per block. currently only supports 4 items per block

Value

a data.frame following the structure of thurstonianIRT::triplets_long but with 4 items per block

Examples

## Not run: 
set.seed(202106)

params <- simulate_thirt_params(n_person = 20,
                                n_item   = 4,
                                n_block  = 2,
                                n_dim    = 4)

resp   <- do.call(simulate_thirt_resp, params)

quads_long <- convert_TIRT(resp, n_item = 4)


## End(Not run)


nguyenllpsych/thirt documentation built on Feb. 14, 2024, 10:53 p.m.