This repository R code and text for R Code for Mastering 'Metrics, which contains the R code to reproduce the analyses in Mastering 'Metrics by Joshua D. Angrist and Jörn-Steffen Pischke.
The site is built using the bookdown package.
To render the book, run the following in R,
render_book("index.Rmd")
To lint R code run
Rscript _lint.R
To check spelling run
Rcript _spelling.R
To lint markdown, install remark and various plugins for it.
$ npm install remark-preset-lint-recommended remark-preset-lint-consistent remark-preset-lint-markdown-style-guide remark-frontmatter
$ remark *.Rmd