README.md

Ordered Correlation Forest

CRAN status CRAN Downloads overall

R package to implement ordered correlation forest, a machine learning estimator specifically optimized for predictive modeling of ordered non-numeric outcomes.

ocf provides forest-based estimation of the conditional choice probabilities and the covariates’ marginal effects. Under an "honesty" condition, the estimates are consistent and asymptotically normal and standard errors can be obtained by leveraging the weight-based representation of the random forest predictions. Please reference the use as Di Francesco (2025).

To get started, please check the online short tutorial.

Installation

The package can be downloaded from CRAN:

install.packages("ocf")

Alternatively, the current development version of the package can be installed using the devtools package:

devtools::install_github("riccardo-df/ocf") # run install.packages("devtools") if needed.

References



Try the ocf package in your browser

Any scripts or data that you put into this service are public.

ocf documentation built on April 4, 2025, 4:44 a.m.