Skip to contents

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

Usage

indirect_effects_create(input_requirements, inverse, digits = NULL)

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

Value

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

Examples

data(netherlands_2000)
#> Warning: data set 'netherlands_2000' not found

input_coeff_nl <- input_coefficient_matrix_create(
  data_table = netherlands_2000,
  households = FALSE
)
#> Error: object 'netherlands_2000' not found

compensation_indicator <- input_indicator_create(
  netherlands_2000, "compensation_employees"
)
#> Error: object 'netherlands_2000' not found

I_nl <- leontief_inverse_create(input_coeff_nl)
#> Error: object 'input_coeff_nl' not found

indirect_effects_create(
  input_requirements = compensation_indicator,
  inverse = I_nl
)
#> Error: object 'compensation_indicator' not found