This vignette collects together other details for odin that we might want to link from elsewhere.
This is only an issue for discrete-time models, as for a continuous time model it is always “now”.
Consider discrete time model that compares to data. There will be
some series of “updates” then a comparison to data, then we repeat until
we reach the end of the data. The order of events as we move from
time = t0
to to time = t0 + dt
is:
Update
zero_every
t0
)time = t0
and
all variables having the value at the beginning of the step)time
to t0 + dt
Compare
t0 + dt
)You can control the default behaviour of some odin functions
by setting options. All options are prefixed with odin2.
(this will change to odin.
once we start actively replacing
the old version). To set an option for a session, you can use
If you want to make this permanent, you can add this line to your
~/.Rprofile
file. The easiest way to edit that file is to
run usethis::edit_r_profile()
which will find the correct
file and open it in your editor (e.g., RStudio, if you are using
that).
odin2.compatibility
The default behaviour of the odin1 to odin2 compatibility checks. If
set, this should be a string suitable to pass to
odin2::odin
(one of warning
,
error
or silent
); see the help for
odin2::odin
for a description of the possible options.