In this vignette we explain how the Domestic Technology Assumption (DTA) can be formulated from a .tidy_iea_df.

The Domestic Technology Assumption

The Domestic Technology Assumption assumes that all imported flows occur within the importing country. So, if country A imports 200 ktoe of coke oven coke from the rest of the world, the Domestic Technology Assumption assumes that these 200 ktoe have been produced in country A, or, rather, with a technology and industrial structure equivalent to country A technology and industrial structure. Although it is not a realistic assumption, it is

  1. a helpful approximation when no data are available regarding trade flows and other countries’ technologies and industrial structures, and
  2. a useful simulation tool, which answers the question “what would have happened if the imported products were produced locally?”

Formulating the Domestic Technology Assumption

The formulation of the Domestic Technology Assumption can be done using the following functions:

  • find_list_dta_observations(): the function identifies which observations (i.e. sets of Country-Year-Method-Energy.type-Last.stage) that fulfil the conditions required for formulating the DTA;
  • transform_to_dta(): the function transforms those observations that fulfil the required conditions in a DTA data frame.

The find_list_dta_observations() function is called within the transform_to_dta() function, and hence, does not need to be called. But calling the function may prove helpful to understand which observations fulfil required conditions for formulating the DTA.

Necessary conditions

To be able to formulate the Domestic Technology Assumption, all products imported by a given country, in a given year, need to be produced in the given country. They do not need to be produced in a quantity sufficient to cover the national demand, it is sufficient that one unit of product is produced by some industry in the importing country. Let us have a look with the AB world example.

## [1] "A_PCM_E_Final_2018"

The country A (year 2018) is found to fulfil the requirements. Indeed, country A imports coke oven coke, but country A also produces locally coke oven coke; we can then simulate that all its coke oven coke consumption comes from domestic production!

Conversely, country B is not found to fulfil the requirements. Indeed, country B imports and consumes coal, natural gas, and crude oil, but does not produce them locally. Hence, we cannot simulate that these products come from domestic production.

Now, to modify the data frame so that it is in accordance with the Domestic Technology Assumption, one can proceed as follows:

tidy_AB_data_dta <- tidy_AB_data %>% 
  IEATools::add_psut_matnames() %>% 
  transform_to_dta() %>% 
  dplyr::glimpse()
## Rows: 57
## Columns: 12
## $ Country                <chr> "A", "A", "A", "A", "A", "A", "A", "A", "A", "A…
## $ Method                 <chr> "PCM", "PCM", "PCM", "PCM", "PCM", "PCM", "PCM"…
## $ Energy.type            <chr> "E", "E", "E", "E", "E", "E", "E", "E", "E", "E…
## $ Last.stage             <chr> "Final", "Final", "Final", "Final", "Final", "F…
## $ Year                   <dbl> 2018, 2018, 2018, 2018, 2018, 2018, 2018, 2018,…
## $ Ledger.side            <chr> "Consumption", "Consumption", "Consumption", "C…
## $ Flow.aggregation.point <chr> "Industry", "Industry", "Industry", "Industry",…
## $ Flow                   <chr> "Iron and steel", "Iron and steel", "Iron and s…
## $ Product                <chr> "Blast furnace gas", "Electricity", "Heat", "Ke…
## $ Unit                   <chr> "ktoe", "ktoe", "ktoe", "ktoe", "ktoe", "ktoe",…
## $ E.dot                  <dbl> 500, 2920, 50, 1750, 500, 365, 200, 120, 700, 2…
## $ matnames               <chr> "Y", "Y", "Y", "Y", "Y", "Y", "Y", "Y", "Y", "Y…

Only flows corresponding to country A are returned, and imports have been relocated to the balancing B matrix (and hence will not appear in the Input-Output matrices, see Aramendia et al. (2022) ):

tidy_AB_data_dta %>%
  dplyr::filter(stringr::str_detect(Flow, "Imports")) %>%
  dplyr::glimpse()
## Rows: 1
## Columns: 12
## $ Country                <chr> "A"
## $ Method                 <chr> "PCM"
## $ Energy.type            <chr> "E"
## $ Last.stage             <chr> "Final"
## $ Year                   <dbl> 2018
## $ Ledger.side            <chr> "balancing"
## $ Flow.aggregation.point <chr> "Total primary energy supply"
## $ Flow                   <chr> "Imports [of Coke oven coke]"
## $ Product                <chr> "Coke oven coke"
## $ Unit                   <chr> "ktoe"
## $ E.dot                  <dbl> -600
## $ matnames               <chr> "B"

And we can verify that the Domestic Technology Assumption data frame remains balanced:

tidy_AB_data_dta %>% 
  IEATools::calc_tidy_iea_df_balances() %>% 
  IEATools::tidy_iea_df_balanced()
## [1] TRUE

References

Aramendia, Emmanuel, Matthew Heun, Paul Brockway, and Peter Taylor. 2022. “Developing a Multi-Regional Physical Supply Use Table Framework to Improve the Accuracy and Reliability of Energy Analysis.” Applied Energy. https://doi.org/10.1016/j.apenergy.2021.118413.