print.eba {ExtremeBounds}R Documentation

Print Extreme Bounds Analysis Results

Description

hist.eba prints the results of extreme bounds analysis (EBA; performed by the eba function) and returns the printed object invisibly (via invisible(x)). The function prints out information about the distribution and significance of estimated regression coefficients, the results of Leamer's EBA, as well as those of Sala-i-Martin's EBA (both the normal and generic model).

Usage

## S3 method for class 'eba'
print(x, digits = 3, ...) 

Arguments

x

an object of class "eba", typically generated by the eba function.

digits

number of decimal places to which the output will be rounded.

...

further arguments passed to print.default and print.data.frame functions within print.eba.

Output

print.eba prints the following information in its output:

Beta coefficients:

Distribution of beta coefficients:

Leamer's Extreme Bounds Analysis (EBA):

Sala-i-Martin's Extreme Bounds Analysis (EBA):

Note that all values of cumulative density functions for Sala-i-Martin's EBA are printed as percentages.

Please cite as:

Hlavac, Marek (2016). ExtremeBounds: Extreme Bounds Analysis in R. Journal of Statistical Software, 72(9), 1-22. doi: 10.18637/jss.v072.i09.

Author(s)

Marek Hlavac < mhlavac at alumni.princeton.edu >
Research Fellow, Central European Labour Studies Institute (CELSI), Bratislava, Slovakia

See Also

eba, hist.eba

Examples

# perform Extreme Bounds Analysis

eba.results <- eba(formula = mpg ~ wt | hp + gear | cyl + disp + drat + qsec + vs + am + carb,
                   data = mtcars[1:10, ], k = 0:2)

# The same result can be achieved by running:
# eba.results <- eba(data = mtcars[1:10, ], y = "mpg", free = "wt",
#                    doubtful = c("cyl","disp","hp","drat","qsec","vs","am","gear","carb"),
#                    focus = c("hp","gear"), k = 0:2)

# print out results, rounded to 2 decimal places
print(eba.results, digits = 2)

[Package ExtremeBounds version 0.1.7 Index]