enw_model | R Documentation |
Load and compile the nowcasting model
enw_model(
model = system.file("stan", "epinowcast.stan", package = "epinowcast"),
include = system.file("stan", package = "epinowcast"),
compile = TRUE,
threads = TRUE,
profile = FALSE,
target_dir = epinowcast::enw_get_cache(),
stanc_options = list(),
cpp_options = list(),
verbose = TRUE,
...
)
model |
A character string indicating the path to the model. If not supplied the package default model is used. |
include |
A character string specifying the path to any stan files to include in the model. If missing the package default is used. |
compile |
Logical, defaults to |
threads |
Logical, defaults to |
profile |
Logical, defaults to |
target_dir |
The path to a directory in which the manipulated .stan
files without profiling statements should be stored. To avoid overriding of
the original .stan files, this should be different from the directory of the
original model and the |
stanc_options |
A list of options to pass to the |
cpp_options |
A list of options to pass to the |
verbose |
Logical, defaults to |
... |
Additional arguments passed to |
A cmdstanr
model.
Functions used to help convert models into the format required for stan
enw_formula_as_data_list()
,
enw_get_cache()
,
enw_pathfinder()
,
enw_priors_as_data_list()
,
enw_replace_priors()
,
enw_sample()
,
enw_set_cache()
,
enw_stan_to_r()
,
enw_unset_cache()
,
remove_profiling()
,
write_stan_files_no_profile()
mod <- enw_model()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.