| plot_rasch_curves | R Documentation |
Plot Rasch Item Curves
plot_rasch_curves(prob_matrix, final_logit_matrix)
prob_matrix |
The matrix returned by compute_Modified_probabilities. |
final_logit_matrix |
The matrix returned by rasch_logit. |
No return value, called for side effects. It generates a series of plots showing the Rasch Item Characteristic Curves (ICC) with difficulty indicators.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.