Restores the common tbl_nowcast result from a bundle written by
save_nowcast(). The native fit is restored into @fit. The
result works with predict(), autoplot(), coef(), parameters(),
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().
Value
A diseasenowcasting subclass of tbl.now::tbl_nowcast.
