fit_model_with_nuts {EpiNow2} | R Documentation |
Fit a Stan Model using the NUTs sampler
Description
Fits a stan model using rstan::sampling
. Provides the optional ability to
run chains using future
with error catching, timeouts and merging of
completed chains.
Usage
fit_model_with_nuts(
args,
future = FALSE,
max_execution_time = Inf,
id = "stan"
)
Arguments
args |
List of stan arguments. |
future |
Logical, defaults to |
max_execution_time |
Numeric, defaults to Inf. What is the maximum execution time per chain in seconds. Results will still be returned as long as at least 2 chains complete successfully within the timelimit. |
id |
A character string used to assign logging information on error.
Used by |
Value
A stan model object
Author(s)
Sam Abbott
[Package EpiNow2 version 1.4.0 Index]