Skip to contents

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 class 'marginaleffects'
prune(tree, component = "all", ...)

Arguments

tree

A marginaleffects object (predictions, comparisons, slopes, or hypotheses)

component

A character string indicating which component to prune: "all" or "modeldata".

...

Unused

Value

A pruned marginaleffects object

Details

...