Print contents of the SDForest.
# S3 method for class 'SDForest'
print(x, ...)
Arguments
- x
Fitted object of class SDForest
.
- ...
Further arguments passed to or from other methods.
Value
No return value, called for side effects
Examples
set.seed(1)
n <- 50
X <- matrix(rnorm(n * 5), nrow = n)
y <- sign(X[, 1]) * 3 + rnorm(n)
model <- SDForest(x = X, y = y, Q_type = 'no_deconfounding', nTree = 5, cp = 0.5)
print(model)
#> SDForest result
#>
#> Number of trees: 5
#> Number of covariates: 5
#> OOB loss: NA
#> OOB spectral loss: NA