print.margins.orf: Print of the Ordered Forest Marginal Effects

View source: R/margins.R

print.margins.orfR Documentation

Print of the Ordered Forest Marginal Effects

Description

print of estimated marginal effects of the Ordered Forest of class margins.orf

Usage

## S3 method for class 'margins.orf'
print(x, ...)

Arguments

x

estimated Ordered Forest Marginal Effect object of type margins.orf

...

further arguments (currently ignored)

Details

print.margins.orf provides a first glimpse of the Ordered Forest marginal effects, printed directly to the R console. The printed information contains the results for the marginal effects for each covariate and each outcome class.

Author(s)

Gabriel Okasa

Examples

## 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)

# estimate marginal effects of the orf
orf_margins <- margins(orf_fit)

# print marginal effects
print(orf_margins)



orf documentation built on July 24, 2022, 1:05 a.m.