Learn R Programming

iotables (version 0.9.4)

indirect_effects_create: Create indirect effects

Description

Compute an indirect-effects vector from an input requirement indicator and a Leontief inverse.

Usage

indirect_effects_create(input_requirements, inverse, digits = NULL)

Value

A data.frame containing the indirect effects and the first (key) column to allow sorting or joins with other tables.

Arguments

input_requirements

A data frame or matrix produced by input_indicator_create(), with a key column first and numeric columns thereafter.

inverse

A Leontief inverse created by leontief_inverse_create(), with a key column first and numeric columns thereafter.

digits

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

Examples

Run this code
data(netherlands_2000)

input_coeff_nl <- input_coefficient_matrix_create(
  data_table = netherlands_2000,
  households = FALSE
)

compensation_indicator <- input_indicator_create(
  netherlands_2000, "compensation_employees"
)

I_nl <- leontief_inverse_create(input_coeff_nl)

indirect_effects_create(
  input_requirements = compensation_indicator,
  inverse = I_nl
)

Run the code above in your browser using DataLab