% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim-utils.R
\name{make_item_prob_cdm}
\alias{make_item_prob_cdm}
\title{Build CDM item response probabilities for attribute mastery patterns}
\usage{
make_item_prob_cdm(patterns, model, p0, p1, mono.constraint = TRUE)
}
\arguments{
\item{patterns}{A binary matrix of attribute mastery patterns.}

\item{model}{One of \code{"DINA"}, \code{"DINO"}, \code{"ACDM"}, \code{"GDINA"}.}

\item{p0}{Lower-bound probability (guessing).}

\item{p1}{Upper-bound probability (1 - slipping).}

\item{mono.constraint}{Logical; if \code{TRUE} (default), enforce the
monotonicity constraint that mastering more attributes never decreases
the success probability.  Only applies to \code{model = "GDINA"}.}
}
\value{
A named numeric vector of probabilities, one per pattern row.
}
\description{
Computes the probability of endorsing an item for each attribute mastery
pattern under the specified CDM condensation rule (DINA, DINO, ACDM, or
GDINA).  \code{p0} is the lower-bound (guessing) probability and
\code{p1} is the upper-bound (1 - slipping) probability.
}
\keyword{internal}
