Table of Contents
List of R Packages I Use
In my work, I make extensive use of the statistical software package/environment R. One of the great strengths of R is the large number of add-on packages that extend the functionality of R (i.e., the functionality of the base/standard packages that are installed by default) in various ways. Here, I keep track and list packages that I make use of on a (semi)regular basis. My work would be many magnitudes more difficult if these packages (and R itself!) did not exist.
- survival: For time-to-event data / Cox proportional hazards regression models.
- flexclust: Useful cluster algorithms.
- aods3: For analyzing overdispersed counts and proportions.
- censReg: For censored regression (Tobit) models.
- betareg: For beta regression.
- VGAM: For vector generalized linear and additive models.
- mgcv: For generalized additive models (GAMs).
- boot: As the name implies, for bootstrapping.
- car: Package to accompany An R Companion to Applied Regression by Fox and Weisberg (2019). I regularly make use of some functions from this package such as
- lmerTest: For approximate Wald-type t-tests for lmer model objects.
- emmeans: To obtain marginal means.
- MatchIt: For propensity score matching.
- The stats package already provides a useful collection of optimizers (
nlmfunctions). For root finding, I use the
- minqa: Several derivative-free optimizers.
- dfoptim: Includes another implementation of the Nelder-Mead algorithm (as in
optim), the Hooke-Jeeves algorithm, and the Mesh Adaptive Direct Searches (MADS) algorithm.
- subplex: A subspace-searching simplex algorithm.
- BB: For the Barzilai-Borwein gradient decent method.
- optimParallel: Parallel version of the BFGS method.
- numDeriv: For numerical calculation of first and second order derivatives.
- pracma: Also for numerical derivatives, integration, and some other numerical analysis functions.
- Matrix: For working with dense and sparse matrices.
- MASS: Package to support Modern Applied Statistics with S by Venables and Ripley (2002). Includes many useful functions, but mentioned here because of the
mvrnormfunction for generating data from a multivariate normal distribution and
fitdistrfor fitting univariate distributions.
- mvtnorm: For the multivariate normal and t distribution.
- BiasedUrn: For the noncentral hypergeometric distribution.
- CompQuadForm: For the distribution function of quadratic forms.
- SuppDists: For some other distributions.
- metafor: Obviously (I wrote it).
- metadat: Lots of meta-analysis datasets.
- meta: Another nice package for meta-analysis.
- metaSEM: For approaching meta-analysis from a structural equation modeling (SEM) perspective.
- Since meta-analysis is one of my primary research areas, I have played around with many packages mentioned under the Meta-Analysis Task View.
- coda: In combination with the previous two packages, for summarizing and plotting chains.
- graphics: I am an old fart when it comes to graphics, sticking mostly to 'base graphics' (I don't actually have any strong opinions on 'base graphics' versus 'ggplot2'; I got into R before ggplot2 or even ggplot was around and just learned how to get all my graphing done with the tools available at the time – and that still works for me).
- plotly: And for creating interactive graphics, plotly is really nice.
- igraph: For drawing network graphs/analyses.
- RColorBrewer: And more color schemes.
- MASS: The
kde2dfunction for 2d kernel density estimation and plotting.
- hexbin: Another approach for creating scatterplots that indicate the density of particular areas.
- extrafont: For making use of additional fonts in graphs.
- Cairo: For the Cairo graphics device.
- devtools: Various useful functions for package development.
- remotes: For installing (usually development versions of) packages from GitHub and other repos.
- testthat: For software/unit testing.
- covr: For tracking/reporting code coverage of the tests.
- Formula: To make use of extended formulas in model fitting functions.
- mathjaxr: To include nicely rendered equations (via MathJax) in the HTML help files of an R package.
- pander: For pandoc markdown.