Learn R Programming

SDModels (version 1.0.4)

print.SDTree: Print a SDTree

Description

Print contents of the SDTree.

Usage

# S3 method for SDTree
print(x, ...)

Value

No return value, called for side effects

Arguments

x

Fitted object of class SDTree.

...

Further arguments passed to or from other methods.

Author

Markus Ulmer

See Also

SDTree

Examples

Run this code

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)
print(model)

Run the code above in your browser using DataLab