Safely remove large elements from stanfit objects that are not needed for postprocessing.

stan_axe(object, what = c("summary", "fit_instance", "stanmodel"))

Arguments

object

stanfit

what

name of attribute to remove, Default: c("summary", "fit_instance", "stanmodel")

Value

stanfit

Details

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

See also

Other utility: stan_names(), stan_retain()