The hayashir data package contains all datasets used in the book "Econometrics" by Fumio Hayashi.
Documentation and variable descriptions for each data set are also included.
Vignettes provide R code that reproduces the output in the "Application" sections of each chapter
The hayashir package can be installed using the package devtools.
After installing devtools, hayashir is installed by entering:
# install devtools if not already installed
# install.packages(devtools)
devtools::install_github("lachlandeer/hayashir")
into the R console.
Load the hayashir package and use the data() function to load the desired data set. The data sets included are:
nerlove: Nerlove's electricity supply and cost data, used in Chapter 1mishkin: Monthly Treasury Bill and inflation rates used in Chapter 2griliches: NLS-Y data used in Chapter 3.greene: Christiansen & Greene's electricty supply and cost data from Chapter 4pwt: The Summers-Heston (Penn World Table) data for Chapter 5yen: Yen spot and forward rates for Chapter 6pound: GB Pound spot and forward rates for Chapter 6dm: German Deutsche Mark spot and forward rates for Chapter 6lothiantaylor: US Dollar / British Sterling Exchange rates for Chapter 9moneydemand: US Money Demand data for Chapter 10
To load a data set:
library(hayashir)
data("nerlove")
If using RStudio, View the nerlove data set
View(nerlove)
Check out the documentation for nerlove. It includes variable column names, original source of data, as well as sections where the data appear in the text.
?nerlove
