Safely remove large elements from stanfit objects that are not needed for postprocessing.
stan_axe(object, what = c("summary", "fit_instance", "stanmodel"))
object | stanfit |
---|---|
what | name of attribute to remove, Default: c("summary", "fit_instance", "stanmodel") |
stanfit
shredder can remove three elements in the stanfit
object
The cached fit summary stored in fit@.MISC
$summary
The cached cpp object stored in fit@.MISC$stan_fit_instance
The stanmodel stored in fit@stanmodel
Other utility:
stan_names()
,
stan_retain()