Learn R Programming

iotables (version 0.9.4)

ghosh_inverse_create: Create Ghosh inverse from output coefficients

Description

Compute the Ghosh inverse from an output-coefficient matrix.

Usage

ghosh_inverse_create(output_coefficients_matrix, digits = NULL)

Value

A data.frame with the original key column and the Ghosh inverse in the remaining columns. If digits is provided, values are rounded.

Arguments

output_coefficients_matrix

A technology-coefficient matrix created by output_coefficient_matrix_create().

digits

Optional integer precision for rounding. Default NULL (no rounding).

Details

The Ghosh inverse is defined as \(G = (I - B)^{-1}\), where \(B\) is the output-coefficient matrix created by output_coefficient_matrix_create().

See the United Nations Handbook on Supply and Use Tables and Input–Output Tables with Extensions and Applications (2018, Rev. 1), pp. 622–639 (PDF).

For the analogous inverse based on input coefficients, see leontief_inverse_create().

See Also

Other analytic object functions: input_flow_get(), leontief_inverse_create(), leontief_matrix_create(), output_coefficient_matrix_create()

Examples

Run this code
# Minimal example
om <- output_coefficient_matrix_create(iotable_get())
ghosh_inverse_create(om)

# Using the Germany 1995 benchmark table (Eurostat manual)
# data(germany_1995)
# om_de <- output_coefficient_matrix_create(germany_1995)
# ghosh_inverse_create(om_de)

Run the code above in your browser using DataLab