Chapter 3 Program set-up
We first have to install the packages needed for the analyses. …
if (!require("pacman")) install.packages("pacman") # package manager
pacman::p_load(sjlabelled, # import Stata dataset
dplyr, # data wrangling
summarytools, # summaries of data
ggplot2, # create plots
ggthemes, # plot themes
sjstats, # contingency table statistics
correlation, # association measures
olsrr, # Breusch-Pagan test
lmtest, # RESET test
sjPlot # Regression tables
)