Learn R Programming

iotables (version 0.9.4)

coefficient_matrix_create: Create a coefficient matrix

Description

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,
  ...
)

Value

A data.frame with:

  • The key column from data_table

  • Numeric columns containing input coefficients

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.

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

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

Run the code above in your browser using DataLab