plot_rasch_curves: Plot Rasch Item Curves

View source: R/functions.R

plot_rasch_curvesR Documentation

Plot Rasch Item Curves

Description

Plot Rasch Item Curves

Usage

plot_rasch_curves(prob_matrix, final_logit_matrix)

Arguments

prob_matrix

The matrix returned by compute_Modified_probabilities.

final_logit_matrix

The matrix returned by rasch_logit.

Value

No return value, called for side effects. It generates a series of plots showing the Rasch Item Characteristic Curves (ICC) with difficulty indicators.

Examples

set.seed(123)
sample_data <- matrix(sample(c(0, 1), 100, replace = TRUE), ncol = 10)
prepared <- prepare_data(sample_data)
irt_results <- fit_binary_irt(prepared$matrix, prepared$total_score)
probs <- compute_Modified_probabilities(irt_results, prepared$total_score)
logits <- rasch_logit(probs)

# Plot the Rasch curves
plot_rasch_curves(probs, logits)


GLMBasedRaschEstimation documentation built on April 22, 2026, 9:08 a.m.