| extract_rasch_difficulties_ordered | R Documentation |
Extract Rasch Item Difficulties in Original Order
extract_rasch_difficulties_ordered(final_logit_matrix)
final_logit_matrix |
The matrix returned by rasch_logit. |
A data frame containing the calculated difficulty parameters for each item, with the following columns:
Item_Number: The sequential index of the item.
Item_Name: The name or label of the item.
Difficulty_Logit: The item difficulty parameter (beta) expressed
on the logit scale, rounded to four decimal places. Higher values indicate
more difficult items.
set.seed(123)
sample_data <- matrix(sample(c(0, 1), 100, replace = TRUE), ncol = 10)
colnames(sample_data) <- paste0("Q", 1: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)
difficulty_table <- extract_rasch_difficulties_ordered(logits)
print(difficulty_table)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.