Learn R Programming

iotables (version 0.9.4)

output_coefficient_matrix_create: Create an output coefficient matrix

Description

Create an output-coefficient matrix from a symmetric input–output table or a use table. Output coefficients can be interpreted as the market shares of products in total output (row-wise normalization).

Usage

output_coefficient_matrix_create(data_table, total = "tfu", digits = NULL)

Value

A data.frame whose first column is the key (product labels) and the remaining columns form the output-coefficient matrix. Column order follows the input.

Arguments

data_table

A symmetric input–output table, use table, margins, or tax table retrieved by iotable_get(). If you request total = "tfu" (total final use), you must supply a full table from iotable_get() because the TFU column is in the second quadrant.

total

Which total to use for normalization. Use "total" (or the present table variant name, e.g. "CPA_TOTAL") for output by product, or "tfu" / "total_final_use" / "final_demand" for total final use. Default: "tfu".

digits

Integer number of decimal places for rounding. Default NULL (no rounding).

Details

Let \(Z\) be the inter-industry flow block and \(x\) the vector of product output (or, for final-demand shares, total final use). The output-coefficient matrix \(B\) is defined row-wise as \(b_{ij} = z_{ij} / x_i\). In practice, zeros in the denominator can make equations unsolvable; this function replaces zeros with a small epsilon (1e-6) to avoid division by zero.

Eurostat, Manual of Supply, Use and Input-Output Tables (e.g., pp. 495, 507) describes output coefficients and the Ghosh framework you may use these with.

See Also

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

Examples

Run this code
data_table <- iotable_get()
output_coefficient_matrix_create(
  data_table = data_table,
  total = "tfu",
  digits = 4
)

Run the code above in your browser using DataLab