% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{rasch_logit}
\alias{rasch_logit}
\title{Compute Logit and Row Means}
\usage{
rasch_logit(prob_matrix)
}
\arguments{
\item{prob_matrix}{The matrix returned by compute_Modified_probabilities.}
}
\value{
A numeric matrix of logit transformations (log-odds) with dimensions
\code{nrow(prob_matrix)} rows by \code{ncol(prob_matrix) + 1} columns.
The first columns contain the logit values for each item, and the final
column, named \code{Row_Mean_Logit}, contains the mean logit across all
items for each person, which serves as an estimate of Student Ability.
}
\description{
Compute Logit and Row Means
}
\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)

logit_results <- rasch_logit(probs)

print(head(logit_results))

}
