prune.marginaleffects: Prune marginaleffects objects to reduce memory usage
Description
Remove large attributes from marginaleffects objects to reduce memory usage.
Warning: This will disable many useful post-processing features of marginaleffects
Usage
# S3 method for marginaleffects
prune(tree, component = "all", ...)
Value
A pruned marginaleffects object
Arguments
- tree
A marginaleffects object (predictions, comparisons, slopes, or hypotheses)
- component
A character string indicating which component to prune: "all" or "modeldata".
- ...
Unused