prune.marginaleffects: Prune marginaleffects objects to reduce memory usage

View source: R/prune.R

prune.marginaleffectsR Documentation

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

Details

...

Value

A pruned marginaleffects object


marginaleffects documentation built on Sept. 13, 2025, 5:07 p.m.