% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{extract_rasch_difficulties_ordered}
\alias{extract_rasch_difficulties_ordered}
\title{Extract Rasch Item Difficulties in Original Order}
\usage{
extract_rasch_difficulties_ordered(final_logit_matrix)
}
\arguments{
\item{final_logit_matrix}{The matrix returned by rasch_logit.}
}
\value{
A data frame containing the calculated difficulty parameters for
each item, with the following columns:
\itemize{
\item \code{Item_Number}: The sequential index of the item.
\item \code{Item_Name}: The name or label of the item.
\item \code{Difficulty_Logit}: The item difficulty parameter (beta) expressed
on the logit scale, rounded to four decimal places. Higher values indicate
more difficult items.
}
}
\description{
Extract Rasch Item Difficulties in Original Order
}
\examples{
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)

}
