Git Product home page Git Product logo

avionic's Introduction

Avionic Model

The Avionic model is an input/output model that was developed at INSEE's National Accounts Department. This department produces summary tables that describe the national economy, such as the input-output table (IOT), which analyses each of the economy's products according to its origin (national production or imports) and its destination (final consumption, exports, investments). At its core, the IOT (input-output table) identifies the intermediate consumption of each branch of the economy in each product of the economy. It is therefore a valuable tool for tracing the interrelationships within the economy. In addition, over the last fifteen years or so, international organisations have developed inter-country IOTs by reconciling foreign trade data, thus making it possible to analyse global value chains. The programs have been developed in R, source data and other tables are in CSV or R format.

Warning : Be careful when agregating, there are a lot of possibility for errors. For 2020 and 2021, passage tables from NACE to COICOP are not stable (especially for some items like masks), so be careful if you want to use data from here to make model for 2020 and 2021

Contents :

  • R programs. The main one is tuto_avionic.R. It calls the other programs when required
  • license
  • avionic.pdf : a french tutorial to learn how to use the programs
  • data from insee.fr that can be used for testing tuto_avionic.R
  • Unfortunately, data from OECD is too heavy to be uploaded here, if you want a R version of these tables, let us know, we'll work it out

There is also a tutorial video here : https://www.youtube.com/watch?v=0zQVsNSFp3c&feature=youtu.be

The file named "emploi_sal_2015.csv" in the main program has been renamed "eqtp_2015.csv" in the upload

How to use it

You can use the programs directly. You can find here data you can use to test the model. To help you, we made both a written tutorial and a video tutorial. There are both in French for now. You can apply the fonctions on all sorts of data, feel free to try on any country for instance. You just need an input-output table to make it work.

Who maintains it

We are a team at Insee (the French national statistical institute), working on national accounts.

What's next

Our next steps :

  • Releasing a full R package for Avionic
  • Translating tutorials
  • Working on mixed model to simulate a variation of production

How to get in touch

You can contact us by email ([email protected]) or here on github, feel free to ask us questions and please, share your work with us

avionic's People

Contributors

flimousin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avionic's Issues

Missing files in the data for replication

The following files are not available in the repo and there is no direct link to download them :

  • emploi_sal_2015.csv'
  • ICIO2018Z.Rda (international data)
  • ICIO2018Z.Rdata
  • ICIO2018X.Rdata
  • ICIO2018HFCE.Rdata
  • ICIO2018NPISH.Rdata
  • ICIO2018GGFC.Rdata

Would it be possible to add them in the repo or to add download url ?

Results mismatch between running tuto_avionic script and Fichiers de résultats on Insee website

Hello,

I have been running your tuto_avionic.R script on 2015 data but the results I obtain are different from the ones which appear on the dedicated page for the model on the INSEE website. Indeed, within the Fichiers de résultats downloaded at https://www.insee.fr/fr/statistiques/fichier/4504149/resultats_modele_Avionic.zip, I see for instance in the file Series_contenus_emploi_NA38.xls that the equivalent EQTP for 2015 for AZ (Agriculture, sylviculture et pêche) for 1 million of domestic consumption is 9.4 whereas I get 15.9 when running your script within the variable res.contenus_emploi. For BZ it is 6.3 vs. 7.5 etc. Do you know where the difference is coming from and on what file the "Fichier de résultats" were run ?

Many thanks in advance

Use RStudio project to declare files encoding

The documentation states that:

  • RStudio is used for development
  • source files are encoded in ISO-8859-1

Since ISO-8859-1 encoding is not the usual encoding for R source files (UTF-8 or ASCII are mostly preferred), I think that the project could benefit by adding an .Rproj file declaring this encoding (see also #1 (comment)). This will avoid issues while opening the source files for R users who always work with UTF-8.

I'll do a PR.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.