epict_model_opts: Format formula data for use with stan

epict_model_optsR Documentation

Format formula data for use with stan

Description

Format formula data for use with stan

Usage

epict_model_opts(
  onsets = TRUE,
  switch = FALSE,
  latent_infections = TRUE,
  variation = "correlated"
)

Arguments

onsets

Logical, defaults to TRUE. Should symptom onsets observations be included in the model if available.

switch

Logical, default to FALSE. Should a secondary breakpoint be included in the piecewise linear Cycle threshold model.

latent_infections

Logical, defaults to TRUE. Should latent time of infection be modelled and used to adjust time from first positive test.

variation

A character string indicating the type of individual level variation to include. Defaults to "correlated" (a random effect with modelled correlation structure). Other options include "uncorrelated" ( a random effect with no modelled correlation structure), and "none" (for no individual level variation).

Value

A list as required by stan.

Author(s)

Sam Abbott

See Also

Functions used to design and setup models adjustment_formula(), epict_formula_as_list(), epict_individual_priors_as_list(), epict_inference_opts(), epict_obs_as_list(), epict_onset_obs_as_list(), epict_population_priors_as_list(), epict_posterior_as_prior(), piecewise_formula(), select_piecewise_parameters()

Examples

# Default options
epict_model_opts()

# No variation and use the piecewise switch
epict_model_opts(switch = TRUE, variation = "none")

seabbs/epict documentation built on July 3, 2023, 6:42 a.m.