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.
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
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.
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.
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.
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)
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.
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.