fromList.SDTree | R Documentation |
Converts the tree in an SDTree object from
class list
to class Node
\insertCiteGlur2023Data.tree:StructureSDModels.
## S3 method for class 'SDTree'
fromList(object, ...)
object |
an SDTree object with the tree in list format |
... |
Further arguments passed to or from other methods. |
an SDTree object with the tree in Node format
Markus Ulmer
toList
set.seed(1)
n <- 10
X <- matrix(rnorm(n * 5), nrow = n)
y <- sign(X[, 1]) * 3 + rnorm(n)
model <- SDTree(x = X, y = y, Q_type = 'no_deconfounding', cp = 0.5)
fromList(toList(model))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.