Restores a nowcast_class from a bundle written by save_nowcast(). The
result works with predict(), autoplot(), coef(), tidy(),
mean()/median()/quantile() straight away (sampling from the stored
Laplace mode + precision). To re-fit it – on the same or new data – pass the
loaded object's model to nowcast() (the saved tbl_now is in the data
slot).
Arguments
- file
Path to a
.rdsbundle written bysave_nowcast().- rebuild
If
TRUE, also re-tape the RTMB objective for each fit (no re-optimization). Needed only foruse_randommarginal fits or to inspect the live tape; custom delays/epidemics requirelibrary(RTMB). DefaultFALSE– the stored mode + precision already drivepredict().
