optimize.SEIRV: Compute fit value for SEIR models

Description Usage Arguments Value

View source: R/fitIncidence.R

Description

Computes the fit value

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
optimize.SEIRV(
  bound.fit,
  incidence,
  attackRatesToMatch,
  SEIRModel.optimize,
  parameters.to.fit.names,
  parameters.SEIR.fixed.names,
  symptomaticIncidence = FALSE,
  fractionSymptomatic = 0.5,
  seedWeeksBeforeIncidence,
  weightIncidenceTimeseries = 1,
  weightAttackRates = 1,
  weightOverallAttackRate = 10,
  ...
)

Arguments

bound.fit

Guess for current iteration.

incidence

Overall incidence curve to match

attackRatesToMatch

Final attack rates (by age group) to match

SEIRModel.optimize

SEIRModel function that we should use to simulate outbreak.

parameters.to.fit.names

Names of parameters to fit.

parameters.SEIR.fixed.names

Names of fixed parameters for SEIR model.

symptomaticIncidence

Is the incidence serological or symptomatic. Defaults to false (serological).

fractionSymptomatic

The fraction of cases that are symptomatic. Not a parameter to fit. Only used if symptomaticIncidence is set to true. Defaults to 0.5.

seedWeeksBeforeIncidence

Days before the start of the supplied incidence curve to seed initial infections.

weightIncidenceTimeseries

What relative weight to the penalty function should the incidence timeseries receive? Defaults to 1.

weightAttackRates

What relative weight to the penalty function should the age-specific attack rates receive? Defaults to 1.

weightOverallAttackRate

What relative weight to the penalty function should the overall attack rate receive? Defaults to 10.

Value

Fit value for optim


HHS/ASPR-flumodelsutil documentation built on Dec. 31, 2020, 12:58 p.m.