View source: R/compile_model.R
Compile a simulation model given all components
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | test_model(
d_prior,
r_prior,
y0,
inp_sim,
ts_sim,
m_sim,
r_sto_sim,
inp_wp,
t_wp,
m_wp,
r_sto_wp,
fn_pass_y0,
fn_check,
method
)
compile_model(
d_prior,
r_prior,
y0,
inp_sim = NULL,
ts_sim,
m_sim,
r_sto_sim,
inp_wp = NULL,
t_wp,
m_wp = m_sim,
r_sto_wp = NULL,
fn_pass_y0,
fn_check,
method = NULL,
max_attempt = 10
)
|
d_prior |
a probability density function supporting prior distributions |
r_prior |
a function for generating parameters from their prior distributions |
y0 |
initial values |
inp_sim |
input data for the simulation stage |
ts_sim |
timespan for simulation |
m_sim |
an odin model for simulation |
r_sto_sim |
a function of (prior, input) for generating internal stochasticity or modifying input |
inp_wp |
input data for the warm-up stage |
t_wp |
length of warm-up stage |
m_wp |
an odin model for warm-up |
r_sto_wp |
a function of (prior, input) for generating internal stochasticity or modifying input for the warm-up stage |
fn_pass_y0 |
a function for bringing the states at the end of warm-up to simulation initials |
fn_check |
a function for checking if a parameter set can generate validated output |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.