A line chart like the one to the right is useful for showing trends over time. We can make these charts in Excel.
You'll notice that in Excel, the GDP cells have little green triangles in the corners. This indicates the number values here are stored as if they are text. To fix this, click in the upper left cell of the values and highlight all of them. Then, click on the little yellow exclamation point and select "Convert to number."
Next select all the data. (Click in cell A1 and drag across to the last value on the right for Venezuela.)
We can change some of the default layout and formatting, and we should. First, click on the "Layout" tab next to "Variables," in the upper left of the screen. We will use the Orientation options to rearrange the way the data are presented. Change the Series to Page and Country to Row, as shown in the image to the right, so that all the countries are shown in one sheet. Click on "Apply Changes" when you are done.
There are several ways to download, but this time we'll download as formatted. Select "Data On This Page Only - Formatted," then save the file somewhere you can find it again. The file name will be "Data_Extract_FromWorld Development Indicators."
​PivotTables are a useful tool in Excel when you have categorical variables. We will use it to make a table of average GDP for groups of countries. First, download and open this spreadsheet to get started.
We want each row to be a Polity IV score, and a column with the average GDP for all countries with that score. To do this, in the PivotTable Fields box, drag Polity 1996 into the Rows box, and 1996 into the Values box.
In the Value Field Settings menu, choose to summarize values by Average, then click OK.