rOpenGov / iotables

Importing and Manipulating Symmetric Input-Output Tables
https://iotables.dataobservatory.eu
Other
20 stars 8 forks source link

Incoherence in how Leontief is computed #25

Open giuliogcantone opened 1 year ago

giuliogcantone commented 1 year ago

Here:

https://iotables.dataobservatory.eu/articles/intro.html

It says that

input_coefficient_matrix_create( 
     data_table = germany_io, 
     digits = 4)

and

coefficient_matrix_create( 
  data_table = iotable_get( labelling = "iotables" ), 
  total = "output", 
  return_part = "products", 
  households = FALSE,
  digits = 4)

Are equivalent.

But they are not because the second keeps the raw total.

When these two outputs are processed through

leontief_matrix_create()

The outputs differ.