PISA 2015 – how to read/process/plot the data with R

Yesterday OECD has published results and data from PISA 2015 study (Programme for International Student Assessment). It’s a very cool study – over 500 000 pupils (15-years old) are examined every 3 years. Raw data is publicly available and one can easily access detailed information about pupil’s academic performance and detailed data from surveys for studetns, parents and school officials (~2 000 variables). Lots of stories to be found.

You can download the dataset in the SPSS format from this webpage. Then use the foreign package to read sav files and intsvy package to calculate aggregates/averages/tables/regression models (for 2015 data you shall use the GitHub version of the package).

Below you will find a short example, how to read the data, calculate weighted averages for genders/countries and plot these results with ggplot2. Here you will find other use cases for the intsvy package.


11 myśli na temat “PISA 2015 – how to read/process/plot the data with R”

  1. Oby, chociaż trend jest w drugą stronę. Ostatnio dane były w formacie SPSS, SAS i plików tekstowych, teraz już nie ma plików tekstowych.
    Ale przez grupę PISA przewinęło się dwóch zapalonych eRowców, więc może i RData kiedyś będzie.

  2. Can you make graphs more readable please?
    I don’t understand the graph.
    Maybe a legend what black and red dot’s mean?

    And at least simple conclusion of results, that would give clue how to interpret this graph.

    1. Red dots are for countries with names, black dots are for countries without names.
      Selection of named countries – subjective.

      1. And the story: on average average (between and within countries) boys are doing slightly better in math than girls.
        But for different countries these ‘gaps’ are different. Finland and Korea – higher average for girls, Austria and Japan – higher average for boys.
        Singapur shows that in PISA both genders may be equally high performance in Math, so maybe Austria could do better in the overall ranking if they try to close the gap between boys and girls.

        1. Thanks for reply. So without looking just in graph, there is no way to get your own conclusions because of lack of concrete indication what point really are and mean?
          So to be meaningful for such ordinary man, just by looking at them, they have to have next layer of description?

          1. Yes, thanks.
            Here my goal was to show how to download, read, process and plot the PISA2015 data (as the title suggests) with the intsvy package for R.
            But I agree, that in order to use this graphics in a ‘story mode’, one need to add much more explanations and annotations.

        2. I would much appreciate some even basic annotations and conclusions from your graphs, in general.
          They can be valuable source of information on many topics, and source of reference, if could be understood just by analyzing them as they are.

Dodaj komentarz

Twój adres e-mail nie zostanie opublikowany. Pola, których wypełnienie jest wymagane, są oznaczone symbolem *

Możesz użyć następujących tagów oraz atrybutów HTML-a: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">