## Ordered Forest
require(orf)
# load example data
data(odata)
# specify response and covariates
Y <- as.numeric(odata[, 1])
X <- as.matrix(odata[, -1])
# estimate Ordered Forest
orf_fit <- orf(X, Y)
# \donttest{
# estimate default marginal effects of the orf
orf_margins <- margins(orf_fit)
# }
Run the code above in your browser using DataLab