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

Description Usage Arguments Details Author(s) Examples

View source: R/margins.R

Description

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

Usage

1
2
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## 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 March 26, 2020, 7:30 p.m.