Learn R Programming

exametrika (version 1.6.0)

grm_prob: Probability function for GRM

Description

Calculates the probability of selecting each category given a latent trait value and item parameters.

Usage

grm_prob(theta, a, b)

Value

Vector of category selection probabilities

Arguments

theta

Latent trait value of the subject

a

Discrimination parameter of IRF

b

Vector of difficulty parameters (thresholds) of IRF

Examples

Run this code
if (FALSE) {
# Example for an item with 3 categories
a <- 1.5
b <- c(-1.0, 1.0)
theta <- 0
grm_prob(theta, a, b)
}

Run the code above in your browser using DataLab