Home

Awesome

This repository contains code to build cosponsorship networks from bills passed in the Norwegian Parliament.

HOWTO

Replicate by running make.r in R.

The data.r script downloads information on bills and sponsors. Some sponsors do not have photos on their profiles, although most of them do. Because the photo identifier is identical to the profile identifier, the photo variable on each sponsor is a numeric dummy (0/1) to mark if a photo exists.

The build.r script then assembles the edge lists and plots the networks, with the help of a few routines coded into functions.r. Adjust the plot, gexf and mode parameters to skip the plots or to change the node placement algorithm.

Note -- excluding minor parties (the Kystpartiet, Framtid for Finnmark, Rød Valgallianse and the sole Green MP from the Miljøpartiet De Grønne) tends to increase partisan modularity by a maximum of 0.01. Most graphs are not affected by the exclusions.

DATA

Bills

Sponsors

The sponsors data have multiple entries for each sponsor (one per legislature in which the sponsor sat).

THANKS

Magnus Eide helped with using data.stortinget.no properly.