q_index: Calculate q-index (1 - p)

View source: R/utils.R

q_indexR Documentation

Calculate q-index (1 - p)

Description

A simple helper to calculate the inverse of the p-value (difficulty index).

Usage

q_index(p)

Arguments

p

A numeric value or vector (item difficulty).

Value

A numeric value or vector (1 - p).

Examples

q_index(0.8)
q_index(c(0.2, 0.5, 0.7))

examly documentation built on Nov. 19, 2026, 5:11 p.m.