Print and summary methods for benchmark results.

# S3 method for class 'dml_benchmark'
print(
  x,
  digits = max(3L, getOption("digits") - 3L),
  combine.method = "median",
  ...
)

# S3 method for class 'dml_benchmark'
summary(object, combine.method = c("median", "mean"), na.rm = TRUE, ...)

# S3 method for class 'summary_dml_benchmark'
print(x, digits = max(3L, getOption("digits") - 3L), ...)

Arguments

x

an object of class dml_benchmark.

digits

minimal number of significant digits.

combine.method

method to combine cross-fitting repetitions. Either "median" (default) or "mean".

...

arguments passed to other methods.

object

an object of class dml_benchmark.

na.rm

logical. Should NA values be removed? Default is TRUE.

Value

For print: the object, printed to console. For summary: an object of class summary_dml_benchmark holding a table of the benchmark components – the gains gain.Y and gain.D, the alignment rho, and the change in estimate delta – each with a standard error derived from its influence function and combined across cross-fitting repetitions.