README.md

📦itewrpkg

A metapackage for the bookdown project Introduction to Econometrics with R, an interactive R companion to the textbook Introduction to Econometrics by Stock & Watson (2015).

The book can be found here.

The bookdown project is available in this GitHub repository.

Installation

It is straightforward to download and install the itewrpkg package from GitHub using install_github() from the devtools package. Run install.packages("devtools") if you are not sure whether devtools is installed.

The following one-liner installs itewrpkg:

# install `itewrpkg`
devtools::install_github("mca91/itewrpkg")

Running the above command will also install all R packages which are required for reproducing the code examples presented throughout the book. Running library(itewrpkg) will load the package and all dependencies which makes it unnecessary to individually attach the packages introduced at the beginning of each chapter. This may take a few seconds but may be convenient if you are playing around with code chunks from various chapters.

Usage

The function get_materials_itewr() is intented as a convenience function for students working with the companion. It downloads up-to-date versions of all supplements to the book such as datasets and R codes from the GitHub repository and saves them to the current working directory of R (or a location of choice provided to the argument dir) according to the following structure:

Make sure to check your working directory using getwd().

Functions

Upon attaching the package using library(itewrpkg) the following functions are available:

References

Stock, J., & Watson, M. (2015). Introduction to Econometrics, Third Update, Global Edition. Pearson Education Limited.



mca91/itewrpkg documentation built on Nov. 10, 2023, 12:03 p.m.