run_deterministic_comparison: Run Deterministic model comparison

View source: R/particle.R

run_deterministic_comparisonR Documentation

Run Deterministic model comparison

Description

Create a deterministic model and compare to data

Usage

run_deterministic_comparison(
  data,
  squire_model,
  model_params,
  model_start_date = "2020-02-02",
  obs_params = list(phi_cases = 0.1, k_cases = 2, phi_death = 1, k_death = 2, exp_noise
    = 1e+06),
  forecast_days = 0,
  save_history = FALSE,
  return = "ll"
)

Arguments

data

to fit to.

squire_model

A squire model to use

model_params

Squire model parameters. Created from a call to one of the parameters_<type>_model functions.

model_start_date

Date to run model simulations from

obs_params

List of parameters used for comparing model to data

forecast_days

Days ahead to include in output

save_history

Whether to save full history. Default = FALSE

return

Set return depending on what is needed. 'full' and "sample" gives the entire output, 'll' gives the log-likelihood

Value

Results from particle filter


mrc-ide/squire documentation built on Sept. 10, 2022, 1:11 a.m.