This code was adapted from code written (under an MIT license) as part of the `epinowcast` package (https://github.com/epinowcast/epinowcast) ww_model
Source:R/fit_model.R
ww_model.Rd
This function compiles the stan model, and is written to include the 'stan' folder. Within each stan file, to include the functions, use #include functions/your_function_file.stan
Usage
ww_model(
model,
include = system.file("stan", package = "cfaforecastrenewalww"),
compile = TRUE,
threads = FALSE,
target_dir = tempdir(),
stanc_options = list(),
cpp_options = list(),
verbose = TRUE,
...
)