Learn R Programming

ocf (version 1.0.3)

summary.ocf.marginal: Summary Method for ocf.marginal Objects

Description

Summarizes an ocf.marginal object.

Usage

# S3 method for ocf.marginal
summary(object, latex = FALSE, ...)

Value

Summarizes an ocf.marginal object.

Arguments

object

An ocf.marginal object.

latex

If TRUE, prints LATEX code.

...

Further arguments passed to or from other methods.

Author

Riccardo Di Francesco

Details

Compilation of the LATEX code requires the following packages: booktabs, float, adjustbox. If standard errors have been estimated, they are printed in parenthesis below each point estimate.

References

  • Di Francesco, R. (2025). Ordered Correlation Forest. Econometric Reviews, 1–17. tools:::Rd_expr_doi("10.1080/07474938.2024.2429596").

See Also

ocf, marginal_effects.

Examples

Run this code
## 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)

## Marginal effects at the mean.
me <- marginal_effects(forests, eval = "atmean")
summary(me)
summary(me, latex = TRUE)

## Add standard errors.
honest_forests <- ocf(Y, X, honesty = TRUE)
honest_me <- marginal_effects(honest_forests, eval = "atmean", inference = TRUE)
summary(honest_me, latex = TRUE)

Run the code above in your browser using DataLab