fromList.SDForest: SDForest fromList method

View source: R/List.R

fromList.SDForestR Documentation

SDForest fromList method

Description

Converts the trees in an SDForest object from class list to class Node \insertCiteGlur2023Data.tree:StructureSDModels.

Usage

## S3 method for class 'SDForest'
fromList(object, ...)

Arguments

object

an SDForest object with the trees in list format

...

Further arguments passed to or from other methods.

Value

an SDForest object with the trees in Node format

Author(s)

Markus Ulmer

References

\insertAllCited

See Also

fromList fromList.SDTree

Examples

set.seed(1)
n <- 10
X <- matrix(rnorm(n * 5), nrow = n)
y <- sign(X[, 1]) * 3 + rnorm(n)
model <- SDForest(x = X, y = y, Q_type = 'no_deconfounding', cp = 0.5, nTree = 2)
fromList(toList(model))

SDModels documentation built on April 11, 2025, 5:50 p.m.