% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sensitivity.R
\name{gb_sensitivity_ob}
\alias{gb_sensitivity_ob}
\title{Optimism bias sensitivity sweep}
\usage{
gb_sensitivity_ob(
  costs,
  benefits,
  ob,
  mitigations = c(0, 0.25, 0.5, 0.75, 1),
  ...
)
}
\arguments{
\item{costs}{Numeric vector of cost values.}

\item{benefits}{Numeric vector of benefit values.}

\item{ob}{Either a category name or a numeric OB percentage.}

\item{mitigations}{Numeric vector in \verb{[0, 1]}. Mitigation
fractions to test. Default \code{c(0, 0.25, 0.5, 0.75, 1.0)}.}

\item{...}{Passed to \code{gb_appraise()}.}
}
\value{
A \code{gb_sensitivity_ob} object: a list with elements
\code{mitigations}, \code{npv}, \code{bcr}, \code{costs_pv}.
}
\description{
Recomputes an appraisal across a vector of optimism bias
mitigation factors. Convenience wrapper for the standard HMT
OB sensitivity test required at SOC, OBC, and FBC stages.
}
\examples{
costs <- c(100, 50, 50, 0, 0, 0, 0, 0, 0, 0)
benefits <- c(0, 0, 0, 30, 30, 30, 30, 30, 30, 30)
gb_sensitivity_ob(costs, benefits, ob = "non_standard_buildings")
}
\seealso{
\code{\link[=gb_appraise]{gb_appraise()}}, \code{\link[=gb_apply_ob]{gb_apply_ob()}}.

Other appraisal: 
\code{\link{gb_appraise}()},
\code{\link{gb_compare}()},
\code{\link{gb_economic_case}()},
\code{\link{gb_place_based}()},
\code{\link{gb_progression}()},
\code{\link{gb_risk_register}()},
\code{\link{gb_validate}()}
}
\concept{appraisal}
