% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pvalue_helpers.R
\name{.bh_threshold}
\alias{.bh_threshold}
\title{Internal: Benjamini--Hochberg rejection threshold}
\usage{
.bh_threshold(p, alpha)
}
\arguments{
\item{p}{Numeric vector of p-values (only finite values are used).}

\item{alpha}{Numeric scalar in \eqn{(0,1)}.}
}
\value{
Numeric scalar BH threshold \eqn{t_\alpha}, or \code{NA_real_} if no
rejection threshold exists.
}
\description{
Computes the BH cutoff \eqn{t_\alpha} for a vector of p-values \code{p} at level
\code{alpha}. Returns \code{NA} if no hypotheses are rejected (or no finite p-values).
}
\keyword{internal}
