% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cv_uncertainty.R
\name{.nb_corrected_var}
\alias{.nb_corrected_var}
\title{Nadeau-Bengio corrected variance}
\usage{
.nb_corrected_var(per_fold_vals, n_train = NULL, n_test = NULL)
}
\arguments{
\item{per_fold_vals}{Numeric vector of per-fold metric values.}

\item{n_train}{Average number of training samples per fold. NULL to skip
correction.}

\item{n_test}{Average number of test samples per fold. NULL to skip
correction.}
}
\value{
Scalar corrected variance, or \code{NA_real_} for single-fold input.
}
\description{
Computes the corrected variance for repeated K-fold CV as described in
Nadeau & Bengio (2003). The correction factor accounts for the overlap
between training sets across folds.
}
\keyword{internal}
