pkgdown/extra.css

Skip to contents

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).

Usage

load_nowcast(file, rebuild = FALSE)

Arguments

file

Path to a .rds bundle written by save_nowcast().

rebuild

If TRUE, also re-tape the RTMB objective for each fit (no re-optimization). Needed only for use_random marginal fits or to inspect the live tape; custom delays/epidemics require library(RTMB). Default FALSE – the stored mode + precision already drive predict().

Value

A nowcast_class object.

See also