powered by
Calculates the probability of selecting each category given a latent trait value and item parameters.
grm_prob(theta, a, b)
Vector of category selection probabilities
Latent trait value of the subject
Discrimination parameter of IRF
Vector of difficulty parameters (thresholds) of IRF
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