% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim-utils.R
\name{sample_fc_responses}
\alias{sample_fc_responses}
\title{Sample forced-choice responses from block-level pattern probabilities}
\usage{
sample_fc_responses(prob, patterns, N.person, N.block)
}
\arguments{
\item{prob}{\eqn{N \times \sum_B P_b} matrix of block-level pattern
probabilities (stacked by block).}

\item{patterns}{List of observed-pattern matrices (one per block).}

\item{N.person}{Number of persons.}

\item{N.block}{Number of blocks.}
}
\value{
A named list with \code{response} (\eqn{N \times B} integer
matrix of pattern indices) and \code{data} (\eqn{N \times B} character
matrix of ranking strings like \code{"1>3>2"}).
}
\description{
Uses inverse-CDF multinomial sampling (identical to the C++ implementation
in \code{forced_choice_from_agree}) to draw a discrete pattern index for
each person-block combination.
}
\keyword{internal}
