summary.ctreeMI: Summary Method for ctreeMI Objects

View source: R/methods.R

summary.ctreeMIR Documentation

Summary Method for ctreeMI Objects

Description

Prints and returns a summary of the stacked-imputation fit and the resulting tree structure (number of nodes, maximum depth).

Usage

## S3 method for class 'ctreeMI'
summary(object, ...)

Arguments

object

An object of class "ctreeMI" as returned by ctree_stacked.

...

Currently unused.

Value

A list (returned invisibly) with components:

ctreeMI_info

Stacking metadata from ctree_stacked.

n_terminal_nodes

Number of terminal nodes.

depth

Maximum depth of the fitted tree.

See Also

ctree_stacked, print.ctreeMI

Examples

set.seed(1)
imp_list <- lapply(1:5, function(i) {
  set.seed(i)
  data.frame(y = rnorm(80), x = rnorm(80))
})
fit <- ctree_stacked(y ~ x, data = imp_list, verbose = FALSE)
summary(fit)

ctreeMI documentation built on July 26, 2026, 1:06 a.m.