% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{compute_Modified_probabilities}
\alias{compute_Modified_probabilities}
\title{Compute Modified Item Response Probabilities}
\usage{
compute_Modified_probabilities(results, theta_all)
}
\arguments{
\item{results}{The data frame returned by fit_binary_irt.}

\item{theta_all}{A numeric vector representing ability levels (total scores).}
}
\value{
A numeric matrix of predicted probabilities with dimensions
\code{length(theta_all)} rows by \code{nrow(results)} columns.
Each cell contains the probability of a correct response for a given
ability level and item, calculated using the logistic function:
\eqn{exp(\theta - \beta) / (1 + exp(\theta - \beta))}, where \eqn{\beta}
is the item threshold. Columns are named after the items.
}
\description{
Compute Modified Item Response Probabilities
}
\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)

abilities <- seq(0, 10, length.out = 5)

probs <- compute_Modified_probabilities(irt_results, abilities)

print(head(probs))

}
