Summarizes an ocf
object.
# S3 method for class 'ocf'
summary(object, ...)
An ocf
object.
Further arguments passed to or from other methods.
Summarizes an ocf
object.
Di Francesco, R. (2025). Ordered Correlation Forest. Econometric Reviews, 1–17. https://doi.org/10.1080/07474938.2024.2429596.
## Generate synthetic data.
set.seed(1986)
data <- generate_ordered_data(100)
sample <- data$sample
Y <- sample$Y
X <- sample[, -1]
## Fit ocf.
forests <- ocf(Y, X)
## Summary.
summary(forests)
#> Call:
#> ocf(Y, X)
#>
#> Data info:
#> Full sample size: 100
#> N. covariates: 6
#> Classes: 1 2 3
#>
#> Relative variable importance:
#> x1 x2 x3 x4 x5 x6
#> 0.363 0.061 0.266 0.082 0.185 0.045
#>
#> Tuning parameters:
#> N. trees: 2000
#> mtry: 3
#> min.node.size 5
#> Subsampling scheme: No replacement
#> Honesty: FALSE
#> Honest fraction: 0