% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forest_utils.R
\name{find_non_reference_row}
\alias{find_non_reference_row}
\title{Find non-reference row for binary variable condensing}
\usage{
find_non_reference_row(var_rows, estimate_col = "estimate")
}
\arguments{
\item{var_rows}{Data.table containing rows for a single variable.}

\item{estimate_col}{Character string naming the estimate column 
(\emph{e.g.,} "estimate", "coef"). Default is "estimate".}
}
\value{
Integer index of the non-reference row within var_rows, or \code{NULL} if
  cannot be determined (\emph{e.g.,} no NA estimates found, or multiple non-NA rows).
}
\description{
Identifies the non-reference row in a binary categorical variable by checking
for NA estimates (reference rows have NA). This is more robust than assuming
row position or matching specific strings like "Yes" or "Positive".
}
\keyword{internal}
