R Package for Aldrich-McKelvey and Basic Space Scaling

Keith Poole, Howard Rosenthal, Jeffrey Lewis, James Lo and Royce Carroll



Download basicspace:Aldrich-McKelvey and BasicSpace Analysis Software for R

Accompanying paper:
Keith Poole, Howard Rosenthal, Jeffrey Lewis, James Lo and Royce Carroll."Recovering a Basic Space from Issue Scales in R"


Background articles on the methods included in the package:


Aldrich-McKelvey Examples


basicspace_AM.r -- R program that performs Aldrich-McKelvey Scaling on the 1980 Liberal-Conservative Seven Point Scale
LC1980V.DAT -- 1980 L-C Data (See R Program for documentation)
basicspace_AM_Vietnam_1968.r -- R program that performs Aldrich-McKelvey Scaling on the 1968 Vietnam Seven Point Scale
VIETNAM_1968.TXT -- 1968 Vietnam Data (See R Program for documentation)
basicspace_AM_Vietnam_1968_Stata_Bootstrap.r -- R program that performs Aldrich-McKelvey Scaling on the 1968 Vietnam Seven Point Scale with the Data stored as a Stata file. Performs a bootstrap analysis to get the standard errors for the candidate placements which are written out as the file 1968_Stimuli.txt.
nes1968_first_11.DTA -- NES1968 STATA 11 File (See R Program for documentation)
basicspace_AM_Urban_Unrest_1968.r -- R program that performs Aldrich-McKelvey Scaling on the 1968 Urban Unrest Seven Point Scale
URBAN_UNREST_1968.TXT -- 1968 Urban Unrest Data (See R Program for documentation)
basicspace_AM_Urban_Unrest_1968_SPSS.r -- R program that performs Aldrich-McKelvey Scaling on the 1968 Urban Unrest Seven Point Scale with the Data stored as a SPSS file
anes1968.POR -- NES1968 SPSS File (See R Program for documentation)
basicspace_AM_Urban_Unrest_1968_Stata_2.r -- R program that performs Aldrich-McKelvey Scaling on the 1968 Urban Unrest Seven Point Scale with the Data stored as a Stata file
nes1968_first_11.DTA -- NES1968 STATA 11 File (See R Program for documentation)
basicspace_AM_L-C_2004_Stata.r -- R program that performs Aldrich-McKelvey Scaling on the 2004 Liberal-Conservative Seven Point Scale From the NES 2004 Stata file
anes2004.DTA -- 2004 NES 2004 (See R Program for documentation)

BLACKBOX Examples


basicspace_blackbox.r -- R program that performs the basicspace scaling on the 1980 issue scales shown in "Estimating a Basic Space From A Set of Issue Scales," American Journal of Political Science, 42 (July 1998), pp. 954-993. Program reads a text file with just the issue positions.
FORT99.DAT -- 1980 Issue Scales Data
basicspace_blackbox_nes1980.r -- R program that performs the basicspace scaling on the 1980 issue scales shown in "Estimating a Basic Space From A Set of Issue Scales," American Journal of Political Science, 42 (July 1998), pp. 954-993. Program reads a STATA file containing the NES 1980 survey. To use the STATA 7 file just change the read.dta() command in the program.
basicspace_blackbox_nes1980_plots.r -- Same as above but it also plots respondents across the first and second Basic Dimensions. This capability will be included in the final package.
nes1980_first.dta -- 1980 NES survey in STATA 7 File
nes1980_first_11.dta -- 1980 NES survey in STATA 11 File
basicspace_blackbox_nes1980_bootstrap.r -- Same as above but it also performs the bootstrap to obtain standard errors for the W and c coefficients for one to three dimensions. The number of trials is set to 101 but any number can be used.

basicspace_blackbox_nes1992.r -- R program that performs the basicspace scaling on 15 issue scales from the 1992 NES. This is a replication of the example shown in the appendix to the 1998 article -- How to Use the Black Box. This program reads the STATA file containing the entire 1992 NES survey. To use the STATA 7 file just change the read.dta() command in the program.
nes1992_first.dta -- 1992 NES survey in STATA 7 File
nes1992_first_11.dta -- 1992 NES survey in STATA 11 File

BLACKBOX TRANSPOSE EXAMPLES


basicspace_blackbox_transpose.r -- R program that performs the basicspace transpose scaling (a generalization of A-M to multiple dimensions) on the 1980 Liberal-Conservative Seven Point Scale. This application is shown in the appendix to the 1998 article -- How to Use the Black Box. The Transpose Scaling Method can be used to test whether or not an Issue Scale is unidimensional.
LC1980V.DAT -- 1980 L-C Data (See R Program for documentation)
basicspace_blackbox_transpose_L-C_2004_Stata.r -- R program that performs the basicspace transpose scaling on the 2004 Liberal-Conservative Seven Point Scale.
anes2004.DTA -- 2004 NES 2004 (See R Program for documentation)
basicspace_blackbox_transpose_1968_Therms.r -- R program that performs a basicspace transpose scaling on the 12 Candidate Feeling Thermometers From the 1968 National Election Study.

NES1968_FIRST.DTA -- NES 1968 STATA 7 file
NES1968_FIRST_11.DTA -- NES 1968 STATA 11 file
-- 1968 NES (See R Program for documentation)
basicspace_big_blackbox_transpose_1968_Therms.r -- R program that performs a basicspace transpose scaling on the 12 Candidate Feeling Thermometers From the 1968 National Election Study. This version removes the 1500 respondent restriction -- Use with caution! The program reads this R program (courtesy of James Lo):
big_blackbox_transpose.R -- R code that creates the function big_blackbox_transpose which is used in the R program above.

The R program produces a plot of the Candidate Configuration -- the Y (PSI) Matrix. This matrix is normalized so that Y'Y=I.


The Respondents are the W matrix. Note that the scale is different from the Candidate Configuration because this is, in effect, a singular value decomposition (see cited papers above) and not an unfolding analysis.

STATA FILES



The STATA files for the American National Election Studies were created using the data posted on the NES website ANES Data Center Page.

NES2008_FIRST.DTA -- NES 2008 STATA 7 file
NES2008_FIRST_11.DTA -- NES 2008 STATA 11 file
NES2008_TRADITIONAL.DAT -- NES 2008 In traditional text format
NES2008_TRADITIONAL.CBK -- NES 2008 Codebook In traditional text format
Variable Listing (includes traditional LOC and WIDTH information), summ Listing, d Listing
NES2004_FIRST.DTA -- NES 2004 STATA 7 file
NES2004_FIRST_11.DTA -- NES 2004 STATA 11 file
NES2004_TRADITIONAL.DAT -- NES 2004 In traditional text format
Variable Listing (includes traditional LOC and WIDTH information), summ Listing, d Listing
NES2000_FIRST.DTA -- NES 2000 STATA 7 file
NES2000_FIRST_11.DTA -- NES 2000 STATA 11 file
NES2000_TRADITIONAL.DAT -- NES 2000 In traditional text format
Variable Listing (includes traditional LOC and WIDTH information), summ Listing, d Listing
NES1996_FIRST.DTA -- NES 1996 STATA 7 file
NES1996_FIRST_11.DTA -- NES 1996 STATA 11 file
Variable Listing, summ Listing, d Listing
NES1992_FIRST.DTA -- NES 1992 STATA 7 file
NES1992_FIRST_11.DTA -- NES 1992 STATA 11 file
Variable Listing, summ Listing, d Listing
NES1988_FIRST.DTA -- NES 1988 STATA 7 file
NES1988_FIRST_11.DTA -- NES 1988 STATA 11 file
Variable Listing, summ Listing, d Listing
NES1984_FIRST.DTA -- NES 1984 STATA 7 file
NES1984_FIRST_11.DTA -- NES 1984 STATA 11 file
Variable Listing, summ Listing, d Listing
NES1980_FIRST.DTA -- NES 1980 STATA 7 file
NES1980_FIRST_11.DTA -- NES 1980 STATA 11 file
Variable Listing, summ Listing, d Listing
NES1976_FIRST.DTA -- NES 1976 STATA 7 file
NES1976_FIRST_11.DTA -- NES 1976 STATA 11 file
Variable Listing, summ Listing, d Listing
NES1972_FIRST.DTA -- NES 1972 STATA 7 file
NES1972_FIRST_11.DTA -- NES 1972 STATA 11 file
Variable Listing, summ Listing, d Listing
NES1968_FIRST.DTA -- NES 1968 STATA 7 file
NES1968_FIRST_11.DTA -- NES 1968 STATA 11 file
Variable Listing, summ Listing, d Listing


Site Links

VOTEVIEW Blog
NOMINATE Data, Roll Call Data, and Software
Course Web Pages: University of Georgia (2010 - )
Course Web Pages: UC San Diego (2004 - 2010)
University of San Diego Law School (2005)
Course Web Pages: University of Houston (2000 - 2005)
Course Web Pages: Carnegie-Mellon University (1997 - 2000)
Analyzing Spatial Models of Choice and Judgment with R
Spatial Models of Parliamentary Voting
Recent Working Papers
Analyses of Recent Politics
About This Website
K7MOA Log Books: 1960 - 2015
Bio of Keith T. Poole
Related Links