% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sensitivity-analysis.R
\name{batch_robustness}
\alias{batch_robustness}
\title{Batch robustness across many pedons}
\usage{
batch_robustness(pedons, ...)
}
\arguments{
\item{pedons}{List of \code{\link{PedonRecord}} objects.}

\item{...}{Passed to \code{\link{classification_robustness}}.}
}
\value{
A data.frame with columns \code{id}, \code{baseline},
        \code{robustness}, \code{n_flipped}.
}
\description{
Runs \code{\link{classification_robustness}} on each pedon in a
list and returns a tidy data.frame with one row per pedon. Useful
for paper-grade claims like "85 % of classifications are robust
to a 5 % analytical-error perturbation".
}
\examples{
\donttest{
pedons <- list(make_ferralsol_canonical(),
                 make_luvisol_canonical(),
                 make_chernozem_canonical())
batch_robustness(pedons, system = "wrb2022", n = 50)
#>            id   baseline robustness n_flipped
#> 1 FR-canon-01 Ferralsols       0.96         2
#> 2 LV-canon-01   Luvisols       1.00         0
#> 3 CH-canon-01 Chernozems       0.94         3
}
}
