Using Packages to Apply Advanced Models

In the first seven chapters of this book, we have treated R like a traditional statistical software program and reviewed how it can perform data management, report simple statistics, and estimate a variety of regression models. In the remainder of this book, though, we turn to the added flexibility that R offers—both in terms of programming capacity that is available for the user as well as providing additional applied tools through packages. In this chapter, we focus on how loading additional batches of code from user-written packages can add functionality that many software programs will not allow. Although we have used packages for a variety of purposes in the previous seven chapters (including car, gmodels, and lattice, to name a few), here we will highlight packages that enable unique methods. While the CRAN website lists numerous packages that users may install at any given time, we will focus on four particular packages to illustrate the kinds of functionality that can be added.

[1]  J. Sekhon,et al.  A matching method for improving covariate balance in cost-effectiveness analyses. , 2012, Health economics.

[2]  G. King,et al.  Multivariate Matching Methods That Are Monotonic Imbalance Bounding , 2011 .

[3]  R. Michael Alvarez,et al.  Voting Made Safe and Easy: The Impact of e-voting on Citizen Perceptions* , 2013, Political Science Research and Methods.

[4]  Matthew Eshbaugh-Soha,et al.  The Agenda-Setting Impact of Major Presidential TV Addresses , 2008 .

[5]  H. Hotelling Stability in Competition , 1929 .

[6]  Stefano M. Iacus,et al.  cem: Software for Coarsened Exact Matching , 2009, Journal of Statistical Software.

[7]  Shane P. Singh Linear and quadratic utility loss functions in voting behavior research , 2014 .

[8]  Gary King,et al.  Amelia II: A Program for Missing Data , 2011 .

[9]  Shane P. Singh Compulsory Voting and the Turnout Decision Calculus , 2015 .

[10]  D. Rubin Matched Sampling for Causal Effects , 2006 .

[11]  D. Black The theory of committees and elections , 1959 .

[12]  R. Lalonde Evaluating the Econometric Evaluations of Training Programs with Experimental Data , 1984 .

[13]  K. T. Poole,et al.  Congress: A Political-Economic History of Roll Call Voting , 1997 .

[14]  Kosuke Imai,et al.  Causal Inference With General Treatment Regimes , 2004 .

[15]  Christian P. Robert,et al.  The Bayesian choice : from decision-theoretic foundations to computational implementation , 2007 .

[16]  J. Ware,et al.  Applied Longitudinal Analysis , 2004 .

[17]  James Lo,et al.  Scaling Roll Call Votes with wnominate in R , 2008 .

[18]  Bradley P. Carlin,et al.  Bayesian Methods for Data Analysis , 2008 .

[19]  Andrew D. Martin,et al.  MCMCpack: Markov chain Monte Carlo in R , 2011 .

[20]  G. King,et al.  Causal Inference without Balance Checking: Coarsened Exact Matching , 2012, Political Analysis.

[21]  Andrew Gelman,et al.  Data Analysis Using Regression and Multilevel/Hierarchical Models , 2006 .

[22]  Jeffrey S. Simonoff,et al.  The SAGE Handbook of Multilevel Modeling , 2013 .