cal_block_energy_with_iia: Fast Calculation of Item Block "Energy" with Inter-Item...

View source: R/cal_block_energy_with_iia.R

cal_block_energy_with_iiaR Documentation

Fast Calculation of Item Block "Energy" with Inter-Item Agreement

Description

Calculates local block energy including IIA metrics. Heavily optimized for Simulated Annealing.

Usage

cal_block_energy_with_iia(
  block,
  char_list,
  weights,
  fun_list,
  rater_chars,
  iia_weights = c(BPlin = 1, BPquad = 1, AClin = 1, ACquad = 1),
  verbose = FALSE
)

Arguments

block

An n by k integer matrix of item indices.

char_list

A list of vectors for item characteristics.

weights

A numeric vector of weights for item characteristics.

fun_list

A list of pre-matched R function objects.

rater_chars

A matrix of participant responses.

iia_weights

A numeric vector of length 4 for IIA metrics.

verbose

Logical. If TRUE, prints metrics. Defaults to FALSE.

Value

A numeric value indicating the total energy.


autoFC documentation built on July 14, 2026, 5:07 p.m.