-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the qogdata wiki!
The xtdata package aims at providing some helper functions to users working with Quality of Government (QOG) datasets, especially with regards to merging different country-year cross-sectional time series. The package allows the user to download data from the QOG data server and from several sources, as well as to merge, plot or subset it according to the specifications of the xtdata data frame attribute.
- Jerven, Morten (2013), Poor Numbers. Cornell University Press.
- Rothstein, Bo (2011) The Quality of Government. University of Chicago Press.
- QOG Reading Recommendations (time series methodological articles)
- Here is a complete description of the xtdata specification attribute for data frames, with planned improvements.
- Here are the Stata do-file and R scripts to generate the QOG variable indexes and demo dataset bundled in the package.
- let
xtdiscover multiple panel data types - let
xtcountrydiscover additional identifiers - let
xtmapaccept other formats thaniso3n - let
xtmapplot maps of the US based onstateandstate.fips - let
xtmapplot maps offrance(subset NUTS-2regionto French ones) - code
xtregionto handle NUTS regional codes - code
xtdes,xtsum,xttabStata equivalents - code
xtsubsetto subset panel data while preserving full time series - code
get_eurostatto get Eurostat national and regional data - code
qoglabelfor getting QOG value labels - code
xtlagandxtleadas in DataCombine - code
xttseandxtdecayas in time-since-event and decay functions - code
findinutils:- minimally look for
regexin variable names - look for
foreignandmemiscattributes and look forregexin variable labels - build a table of results that includes
n, and forxtdatadatasets,t,ts.min,ts.max - accept
tandlabels(overridesxtdataand defaults toNULL)
- minimally look for
- idea: code something like
dataRepinHmisc - idea: support
simcf(Zelig simulations for TSCS models) - idea: recode better indexes
- get Stata variable labels from R after importing with
foreign - add value label column and label and label table
- make
qogfindsearch the first andqoglabelsearch the second
- get Stata variable labels from R after importing with
The get functions and xtdata specification for panel data were inspired by Anthony J. Damico's usgd repository of scripts for survey analysis, Zack M. Alquist's R packages for the U.S. Census, and by other R packages to work with survey data. The qogdata package is an effort to bring similar tools to country-level panel data users.