This archive contains supplementary material for the article entitled "A Dynamic State-Space Model of
  Coded Political Texts"

File list:

=========================   ===============================================================
File name                   Description
=========================   ===============================================================
README                      This file
boot-logplaneco.R           An R script to bootstrap Lowe et al.'s LogPlanEco index
                            used in Figure 5 in the online appendix
boot-planeco.R              An R script to bootstrap the CMP PlanEco index
                            used in Figure 4 in the online appendix
boot-rile.R                 An R script to bootstrap the CMP RiLe index
                            used in Figure 3 in the online appendix
changes-econ-latpos.R       An R script to compute the data used in Figure 4 of the 
                            article 
conslab-euro-plot.R         An R script to draw Figure 3 of the article
                            and Figures 3,4,5,6 of the online appendix
econlr-shifts-plot.R        An R script draw Figure 4 of the article
manifesto-counts.RData      An R data file used for the analyses
manifesto-econ-latpos.R     An R script to produce the results shown in Table 1
manifesto-nonmat-latpos.R   An R script to produce the results shown in Table 2
manifestos_0.7.tar.gz       An R package to fit the models described in the paper
                            (an R source package)
manifestos-manual.pdf       A manual for the software package
panel-bands.R               An utility file sourced by 'conslab-euro-plot.R'
panel-bars.R                An utility file sourced by 'econlr-shifts-plot'
plot-labour-1964-1997.R     An R script to draw Figure 2 of the article
predict-econ-latpos.R       An R script to compute the data used in Figure 3 of the article
setup-manifestoproj.R       An R script to create the R Data file "manifesto-counts.RData"
                            from data downloaded from the Manifesto Project Web site
simul-model20.R             An R script to replicate the simulation study in the appendix
simul-model2000.R           An R script to replicate the simulation study in the appendix
simulate-econ-latpos.R      An R script to compute the data used in Figure 2 of the article
wald-econ-objectives.R      An R script to compute Wald tests mentioned in the
                            manuscript and shown in Table 3 of the online appendix
=========================   ================================================================


To reproduce the results of the article and its online appendix, the R files
have to be run in the following order (after the package 'manifestos 0.7' has been
installed):

=============================   ============================================================
Script Run                      Result
=============================   ============================================================
01. manifesto-econ-latpos.R     Produces results in Table 1 in the article
02. wald-econ-objectives.R      Computes Wald tests
03. simulate-econ-latpos.R
04. plot-labour-1964-1997.R     Draws Figure 2 in the article
05. boot-rile.R
06. boot-planeco.R
07. boot-logplaneco.R
08. predict-econ-latpos.R
09. conslab-euro-plot.R         Draws Figure 3 (and Figures 3,4,5,6 of the appendix)
10. simulate-econ-latpos.R    
11. changes-econ-latpos.R
12. econlr-shifts-plot.R        Draws Figure 4 in the article
13. manifesto-nonmat-latpos.R
14. simul-model20.R             Runs simulation reported in the online appendix
15. simul-model2000.R           Runs simulation reported in the online appendix
=============================   ============================================================
