1 Preface

This book serves as an introduction to data analysis for public affairs with R and RStudio. Most examples are drawn from public affairs and economics. Throughout the book, the following notation is used:

  • \(variablename\): Variable names which represent the columns in a data frame
  • dataset: Name of the data set in the file DataAnalysisPAData.RData
  • Exercise Name: Title of the exercise in the various chapters
  • package: Link to the package documentation. The example link is associated with “Linear Models for Panel Data.”

The variable definitions and the data sets in DataAnalysisPAData.RData are described in the section Data Sources.