Skip to contents

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

Sam Abbott

Examples

# Default options
epict_model_opts()
#> $switch
#> [1] 0
#> 
#> $onsets
#> [1] 1
#> 
#> $latent_inf
#> [1] 1
#> 
#> $ind_var_m
#> [1] 1
#> 
#> $ind_corr
#> [1] 1
#> 
#> $K
#> [1] 3
#> 

# No variation and use the piecewise switch
epict_model_opts(switch = TRUE, variation = "none")
#> $switch
#> [1] 1
#> 
#> $onsets
#> [1] 1
#> 
#> $latent_inf
#> [1] 1
#> 
#> $ind_var_m
#> [1] 0
#> 
#> $ind_corr
#> [1] 0
#> 
#> $K
#> [1] 5
#>