Learn R Programming

iotables (version 0.9.4)

direct_effects_create: Create direct effects

Description

The function creates the effects.

Usage

direct_effects_create(input_requirements, inverse, digits = NULL)

Value

A data.frame containing the direct effects and the necessary metadata to sort them or join them with other matrixes.

Arguments

input_requirements

A matrix or vector created by input_indicator_create

inverse

A Leontief-inverse created by leontief_inverse_create.

digits

Rounding digits, defaults to NULL, in which case no rounding takes place.

See Also

Other indicator functions: coefficient_matrix_create(), input_indicator_create()

Examples

Run this code
nl <- 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)

direct_effects_create(
  input_requirements = compensation_indicator,
  inverse = I_nl
)

Run the code above in your browser using DataLab