Generate the FUN (returning GoF) to be used in hindcast optimization for S3

model_hindcast_S3(
  PARAMETER,
  PARAMETER.EXPONENT,
  BASEYEAR,
  TARGETYEARS,
  BASEDATA.ALLYEARS,
  LOG.WEIGHT = F,
  DB.OUTPUT = F
)

Arguments

PARAMETER

A vector of parameters to optimize

PARAMETER.EXPONENT

A list of parameters used in initial calibration (e.g., CES and logit exponents)

BASEYEAR

A numeric value of base year

TARGETYEARS

A vector of target years

BASEDATA.ALLYEARS

The dataframe returned from dataproc.basedata

LOG.WEIGHT

if true using log(1+weight) as weight; otherwise weight^0.5 is used as weight in output_metric

DB.OUTPUT

A logical variable: with value "T", output database is output; "F" is required in solver

Value

goodness-of-fit (GoF)