% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/accelerate_hep.R
\name{accelerate_espar}
\alias{accelerate_espar}
\title{Accelerate espar}
\usage{
accelerate_espar(
  df,
  value_col = "value",
  ind_ids = billion_ind_codes("hep"),
  scenario_col = "scenario",
  start_year = 2018,
  baseline_year = 2018,
  end_year = 2025,
  default_scenario = "default",
  scenario_name = "acceleration",
  ...
)
}
\arguments{
\item{df}{Data frame in long format, where 1 row corresponds to a specific
country, year, and indicator.}

\item{value_col}{Column name of column with indicator values.}

\item{ind_ids}{Named vector of indicator codes for input indicators to the Billion.
Although separate indicator codes can be used than the standard, they must
be supplied as a named vector where the names correspond to the output of
\code{billion_ind_codes()}.}

\item{scenario_col}{Column name of column with scenario identifiers. Useful for
calculating contributions on data in long format rather than wide format.}

\item{start_year}{Base year for contribution calculation, defaults to 2018.}

\item{baseline_year}{Year from which the scenario is measured.
Defaults to \code{start_year}}

\item{end_year}{End year(s) for contribution calculation, defaults to 2019 to 2025.}

\item{default_scenario}{name of the default scenario.}

\item{scenario_name}{Name of the scenario. Defaults to scenario_{percent_change}_{baseline_year}}

\item{...}{additional parameters to be passed to scenario function}
}
\value{
data frame with acceleration scenario binded to \code{df}. \code{scenario_col} is
set to \code{acceleration}
}
\description{
@description
}
\details{
\code{accelerate_espar()} accelerate espar by aiming at the best value between the regional average
(WHO regions) and the value last year of the last year with complete espar
data (with categories and sub-categories).
}
\seealso{
HEP acceleration scenarios
\code{\link{accelerate_cholera_campaign}()},
\code{\link{accelerate_detect}()},
\code{\link{accelerate_measles_routine}()},
\code{\link{accelerate_meningitis_campaign}()},
\code{\link{accelerate_polio_routine}()},
\code{\link{accelerate_yellow_fever_campaign}()}
}
\concept{hep_acceleration}
