qogjoin: Join historical and recent states in QOG Standard time series...

Description Usage Arguments Details Value Author(s) References Examples

Description

Function to plot maps of Quality of Government (QOG) data. Requires the ggplot2 and maps packages.

Usage

1
  qogjoin(data, country = NULL)

Arguments

data

a QOG Standard time series dataset, or any data frame with cname (country) and year information coded as in the QOG Standard time series dataset.

country

the country name to join data over. Requires the cname variable.

Details

The function will try to find two series of country-year observations that both match the country argument. Within the QOG Standard time series dataset, this will match historical states like "France (-1962)" to modern states like "France (1963-)". The function will then create a new variable out of both series, joined at their separation years, and set its country code attributes to the most recent ones. See Appendix A of the QOG Standard Codebook for details on historical states in the QOG Standard time series dataset.

Value

a data frame with country-year observations

Author(s)

Francois Briatte f.briatte@ed.ac.uk

References

Teorell, Jan, Nicholas Charron, Stefan Dahlberg, Soren Holmberg, Bo Rothstein, Petrus Sundin & Richard Svensson. 2013. The Quality of Government Dataset, version 15May13. University of Gothenburg: The Quality of Government Institute, http://www.qog.pol.gu.se.

Examples

1
2
3
4
5
6
7
# Load QOG demo datasets.
data(qog.demo)
QOG = qog.ts.demo
QOG = qogjoin(QOG, "Ethiopia")
QOG = qogjoin(QOG, "France")
QOG = qogjoin(QOG, "Malaysia")
QOG = qogjoin(QOG, "Pakistan")

briatte/qogdata documentation built on May 13, 2019, 7:43 a.m.