Learn R Programming

⚠️There's a newer version (0.9.3) of this package.Take me there.

iotables

The symmetric input-output tables (SIOTs) are complex statistical products that present inter-related statistics in a predefined structure. They are often found in spreadsheets that follow this structure, or in the case Eurostat in a data repository. In both cases they in reproducible research must be downloaded and restructured to programmatically accessible form. Often these highly structured statistics need to be analyzed together with other data, for example, when employment effects and multipliers are calculated. In this case processing the employment data to SIOT conforming format is a significant preprocessing challenge.

The iotables are exactly designed for these tasks. Currently the package downloads and processes standardized European SIOTs conforming to the latest statistical regulations, i.e. SIOTs starting from the year 2010.

The aim of this introduction is not to introduce input-output economics, or SIOTs in detail. The Eurostat Manual of Supply, Use and Input-Output Tables and the Eurostat tematic page ['Eurostat Manual' in the documentation] should be consulted for further information about the data and the metadata.

In order to test the analytical functions of the package and to have a manageable sized example data set, we use the real-life data from the Eurostat manual. The germany_1990 dataset is a simplified 6x6 sized SIOT taken from the Eurostat SIOT manual (page 481). The package function examples can be checked against Jörg Beutel's published results.

Installation

You can install iotools from CRAN or the latest development version with github:

install.packages("iotables")
devtools::install_github("rOpenGov/iotables")

#with vignettes:
#devtools::install_github("rOpenGov/iotables", build_vignettes = TRUE)

You can follow changes on the NEWS.md file.

Acquiring data

Eurostat's data can be downloaded in several tidy, long-form, files, and a lot of filtering is needeed to start working with it.

Currently the following Eurostat SIOTs can be used:

  • product x product SIOTs naio_10_cp1700 or naio_10_pyp1700;

  • industry x industry SIOTS naio_10_cp1750 ornaio_10_pyp1750;

  • trade and transport margins naio_10_cp1620 or naio_10_pyp1620, only with stk_flow = 'TOTAL'

  • net taxes less subsidies naio_10_cp1630 or naio_10_pyp1630, only with stk_flow = 'TOTAL'.

The cp element refers to basic prices and the pyp to previous years' prices.

Vignettes

The Germany 1990 vignette presentes most of the examples of the Eurostat Manual of Supply, Use and Input-Output Tables (Eurostat Manual, Chapter 15.) This is a good introduction to understand what will the functions do, and to check that they work correctly. The testthat infrastructure of the package checks the proper working of the functions against the published results from the Eurostat Manual.

The Working with Eurostat Data vignette shows how you can download, pre-process and use real data from Eurostat.

Copy Link

Version

Install

install.packages('iotables')

Monthly Downloads

294

Version

0.3.5

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Daniel Antal

Last Published

November 29th, 2018

Functions in iotables (0.3.5)

equation_solve

Solve a basic equation
output_coefficient_matrix_create

Create an output coefficient matrix
input_indicator_create

Create input indicator(s)
germany_1990

Simple input-output table for Germany, 1990.
output_get

Get an output vector
input_coefficient_matrix_create

Create an input coefficient matrix
forward_linkages

Forward linkages
iotable_get

Get an input-output table from bulk file
input_multipliers_create

Create input multipliers
gva_get

Get the gross value added (GVA) vector
primary_input_get

Get primary inputs
output_multiplier_create

Output multipliers
primary_inputs

Primary input abbreviations
conforming_vector_create

Create an empty conforming vector
leontieff_inverse_create

Create the inverse of a Leontieff-matrix.
iotables_download

Download input-output tables
iotable_year_get

Get the available years for the input-ouptput tables.
%>%

Pipe operator
metadata

Metadata
multiplier_create

Create multipliers
use_table_get

Create a use (input flow) matrix
leontieff_matrix_create

Create a Leontieff matrix
backward_linkages

Backward linkages
direct_effects_create

Create direct effects
employment_get

Get employment data
croatia_2010_1700

Input-output table for Croatia, 2010.
croatia_2010_1800

Input-output table for Croatia, 2010.
croatia_2010_1900

Input-output table for Croatia, 2010.
croatia_employment_aggregation

Aggregation table for Croatian employment statistics
croatia_employment_2013

Croatian employment data for the year 2013
employment_metadata

Employment metadata