Skip to contents

Compute a coefficient matrix from a symmetric input–output table (SIOT), use table, or similar. By default, coefficients are related to output, but you can use other totals if present.

Usage

coefficient_matrix_create(
  data_table,
  total = "output",
  digits = NULL,
  remove_empty = TRUE,
  households = FALSE,
  return_part = NULL,
  ...
)

Arguments

data_table

A symmetric input–output table, use table, margins or tax table retrieved by iotable_get().

total

Character. Row label to use as denominator. Defaults to "output". Accepts "P1", "output_bp", "total", "cpa_total".

digits

Optional integer. Number of digits for rounding. Default NULL (no rounding).

remove_empty

Logical. Defaults to TRUE. If FALSE, empty primary-input rows are kept. Empty product/industry rows are always removed.

households

Logical. If TRUE, include household column. Default FALSE.

return_part

Optional. "products", "industries", or "primary_inputs" to select a subset of the matrix. Default NULL returns the full matrix.

...

Optional extra arguments for future extensions, ignored by default.

Value

A data.frame with:

  • The key column from data_table

  • Numeric columns containing input coefficients

Details

The coefficient matrix \(A\) is formed by dividing each row of the inter-industry flows by an output or supply total. By default, the denominator is "output" (equivalent to "P1" or "output_bp"). Alternative totals can be supplied via the total argument.

See also

Other indicator functions: direct_effects_create(), input_indicator_create()

Examples

cm <- coefficient_matrix_create(
  data_table = iotable_get(source = "germany_1995"),
  total = "output",
  digits = 4
)