% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summaries.R
\name{compute_qdc}
\alias{compute_qdc}
\title{Distinguishing and consensus verdicts}
\usage{
compute_qdc(fit, q = 0.05, cons_floor = 0.95, prob = NULL)
}
\arguments{
\item{fit}{A \code{bayesqm_fit} with \code{K >= 2}.}

\item{q}{Posterior expected false-discovery bound (default 0.05).}

\item{cons_floor}{Minimum consensus probability before a statement can
be selected as consensus (default 0.95).}

\item{prob}{Credible-interval probability for the contrast intervals;
defaults to the fit's. The critical difference itself keeps its
z_0.975 definition regardless.}
}
\value{
A data frame with one row per statement: per-factor
distinguishing probabilities, \code{consensus_prob}, and the \code{verdict}.
Attributes: \code{delta_kl} and \code{delta_kl99} (per pair), \code{delta_grid},
\code{contrasts} (the per-pair contrast table with intervals, the
probability \code{diff_column_prob} that the two viewpoints place the
statement in different grid columns, and \code{stars}, \code{*} for selected
claims and \verb{**} for those that also clear the \code{z_0.995} critical
difference at probability .99), and \code{expected_false} per family.
}
\description{
The statement verdict table. Distinguishing-for-a-factor is the joint
event that every contrast touching that factor exceeds the posterior
critical difference \code{delta_kl} (computed from the posterior spread of
the score contrasts); consensus is the equivalence event that all
scores sit within one grid column (\code{\link[=delta_grid]{delta_grid()}}) of each other. Both
families are selected through the posterior false-discovery rule, and a
statement can be distinguishing, consensus, or indeterminate.
}
\examples{
compute_qdc(demo_fit())

}
