flexmodel | R Documentation |
https://canmod.net/misc/flex_specs
flexmodel(
params,
state = NULL,
start_date = NULL,
end_date = NULL,
params_timevar = NULL,
do_hazard = getOption("MP_default_do_hazard"),
do_make_state = getOption("MP_default_do_make_state"),
do_hazard_lin = getOption("MP_default_do_hazard_lin"),
do_approx_hazard = getOption("MP_default_do_approx_hazard"),
do_approx_hazard_lin = getOption("MP_default_do_approx_hazard_lin"),
do_sim_constraint = getOption("MP_default_do_sim_constraint"),
sim_lower_bound = getOption("MP_default_sim_lower_bound"),
max_iters_eig_pow_meth = 8000,
tol_eig_pow_meth = 1e-06,
data = NULL,
...
)
init_model(...)
params |
a |
state |
a |
start_date |
simulation start date |
end_date |
simulation end date |
params_timevar |
data frame with scheduling for piece-wise constant parameter variation (TODO: direct to other help pages) |
do_hazard |
should hazard simulation steps be used?
(https://canmod.net/misc/flex_specs#v0.0.5) – only used
if |
do_make_state |
should state be remade on the c++ size?
(https://canmod.net/misc/flex_specs#v0.1.1) – only used
if |
do_hazard_lin |
like |
do_approx_hazard |
approximate the hazard transformation by a smooth function (experimental) |
do_approx_hazard_lin |
like |
do_sim_constraint |
should simulated values be smoothly
constrained to be above |
sim_lower_bound |
optional lower bound on the simulated values
when computing negative binomial loss functions (only applicable
when |
max_iters_eig_pow_meth |
maximum number of iterations to use in computing the eigenvector for initial state construction |
tol_eig_pow_meth |
tolerance for determining convergence of the power method used in initial state construction |
data |
optional observed data frame in long format to
compare with simulated trajectories. must have the following
columns: |
flexmodel object representing a compartmental model
Other flexmodels:
make_ageified_model()
,
make_base_model()
,
make_hello_world_model()
,
make_omicron_model()
,
make_sir_model()
,
make_vaccination_model()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.