2.0.0 • Published 9 years ago

denmark-parent-income v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

#denmark-parent-income Build Status

Get parent income mean and median given a schools institution number

Installation

npm install denmark-parent-income

Documentation

On installation this module a CSV file containing data for parents income in 2012 and 2011. This is then parsed and stored as a JSON file.

const schools = require('denmark-parent-income')

schools is a Map object, with institution numbers as keys and associated information as values.

See http://statweb.uni-c.dk/InstRegV2/Fremfind.aspx?SearchType=AlphaInst for what institution numbers are.

schools().once('data', function (item) {
  // All money related values are in DKK and the brutto income
  item = {
    "instnr": 101001,
    "2012_mean": 566930,
    "2012_median": 499169,
    "2011_mean": 580395,
    "children": 465
  }
});

Source

The source is this csv file:

https://www.google.com/fusiontables/DataSource?docid=1aDTKm1r0ngzu_Dl3djfNsDvXNSjMTbsRp9AEy4k#rows:id=1