├── .gitignore
├── README.md
├── ScPo-advanced.Rproj
├── css
├── scpo-fonts.css
└── scpo.css
├── img
├── ISLR
│ └── Chapter2
│ │ ├── 2.1.pdf
│ │ ├── 2.10.pdf
│ │ ├── 2.10.png
│ │ ├── 2.11.pdf
│ │ ├── 2.11.png
│ │ ├── 2.12.pdf
│ │ ├── 2.12.png
│ │ ├── 2.13.pdf
│ │ ├── 2.14.pdf
│ │ ├── 2.15.pdf
│ │ ├── 2.16.pdf
│ │ ├── 2.17.pdf
│ │ ├── 2.2.pdf
│ │ ├── 2.3.pdf
│ │ ├── 2.3.png
│ │ ├── 2.4.pdf
│ │ ├── 2.4.png
│ │ ├── 2.5.pdf
│ │ ├── 2.5.png
│ │ ├── 2.6.pdf
│ │ ├── 2.6.png
│ │ ├── 2.7.pdf
│ │ ├── 2.7.png
│ │ ├── 2.8.pdf
│ │ ├── 2.8.png
│ │ ├── 2.9.pdf
│ │ ├── 2.9.png
│ │ └── app.gif
├── IV-dag.png
├── Kensington_slums_large.jpg
├── clustering
│ ├── c1.png
│ ├── c10.png
│ ├── c2.png
│ ├── c3.png
│ ├── c4.png
│ ├── c5.png
│ ├── c6.png
│ ├── c7.png
│ ├── c8.png
│ └── c9.png
├── crime-dag.png
├── crime-dag2.png
├── ex
│ └── title.png
├── father-thames.jpg
├── gifs
│ ├── alert.png
│ ├── help.png
│ ├── panel.gif
│ ├── ray-paris.mp4
│ ├── ray.mp4
│ ├── ray.png
│ └── wages.gif
├── logo
│ ├── ScPo-econ.png
│ ├── ScPo-shield.png
│ ├── dplyr.svg
│ ├── ggplot2.svg
│ ├── magrittr.svg
│ └── r-datatable.svg
├── photos
│ ├── SSR_cone.png
│ ├── Smoking_lung_cancer.png
│ ├── adjusted_death_rates.png
│ ├── age_by_smoking_status.png
│ ├── bootstrap1.JPG
│ ├── bootstrap2.JPG
│ ├── ci_diagram.png
│ ├── correlation_funny.png
│ ├── ex_cigar_subclassif.png
│ ├── fundamental_pb_inference.png
│ ├── fusilli-tricolore.png
│ ├── gt_error_table.png
│ ├── gt_error_table_ht.png
│ ├── hist_building.gif
│ ├── hist_building_vline.gif
│ ├── ht.png
│ ├── manip_1.png
│ ├── manip_2.png
│ ├── md-bank.jpg
│ ├── md-bank2.jpg
│ ├── md-pennies.jpg
│ ├── min_wage_parallel_trends.png
│ ├── nj_penn_map.png
│ ├── pasta
│ │ ├── pasta_bowl.JPG
│ │ ├── sample1.JPG
│ │ ├── sample10.JPG
│ │ ├── sample11.JPG
│ │ ├── sample12.JPG
│ │ ├── sample13.JPG
│ │ ├── sample14.JPG
│ │ ├── sample15.JPG
│ │ ├── sample16.JPG
│ │ ├── sample17.JPG
│ │ ├── sample18.JPG
│ │ ├── sample19.JPG
│ │ ├── sample2.JPG
│ │ ├── sample3.JPG
│ │ ├── sample4.JPG
│ │ ├── sample5.JPG
│ │ ├── sample6.JPG
│ │ ├── sample7.JPG
│ │ ├── sample8.JPG
│ │ └── sample9.JPG
│ ├── pasta1.JPG
│ ├── pasta2.JPG
│ ├── pasta3.JPG
│ ├── pasta4.JPG
│ ├── pasta5.JPG
│ ├── pasta6.JPG
│ ├── power.png
│ ├── raw_death_rates.png
│ ├── spurious.png
│ ├── standard_normal_distrib.png
│ ├── transition.png
│ └── visualize.png
├── simulation-scatter-1.png
├── slum.jpg
├── snow-map.jpg
└── snow-supply.jpg
├── js
└── ru_xaringan.js
├── lectures
├── 00-DID
│ ├── chapter_did.Rmd
│ ├── chapter_did.html
│ ├── chapter_did.pdf
│ ├── chapter_did_files
│ │ └── figure-html
│ │ │ ├── unnamed-chunk-10-1.svg
│ │ │ ├── unnamed-chunk-11-1.svg
│ │ │ ├── unnamed-chunk-110-1.svg
│ │ │ ├── unnamed-chunk-111-1.svg
│ │ │ ├── unnamed-chunk-112-1.svg
│ │ │ ├── unnamed-chunk-113-1.svg
│ │ │ ├── unnamed-chunk-114-1.svg
│ │ │ ├── unnamed-chunk-115-1.svg
│ │ │ ├── unnamed-chunk-116-1.svg
│ │ │ ├── unnamed-chunk-117-1.svg
│ │ │ ├── unnamed-chunk-118-1.svg
│ │ │ ├── unnamed-chunk-119-1.svg
│ │ │ ├── unnamed-chunk-12-1.svg
│ │ │ ├── unnamed-chunk-120-1.svg
│ │ │ ├── unnamed-chunk-121-1.svg
│ │ │ ├── unnamed-chunk-122-1.svg
│ │ │ ├── unnamed-chunk-123-1.svg
│ │ │ ├── unnamed-chunk-124-1.svg
│ │ │ ├── unnamed-chunk-125-1.svg
│ │ │ ├── unnamed-chunk-126-1.svg
│ │ │ ├── unnamed-chunk-13-1.svg
│ │ │ ├── unnamed-chunk-14-1.svg
│ │ │ ├── unnamed-chunk-15-1.svg
│ │ │ ├── unnamed-chunk-16-1.svg
│ │ │ ├── unnamed-chunk-17-1.svg
│ │ │ ├── unnamed-chunk-18-1.svg
│ │ │ ├── unnamed-chunk-19-1.svg
│ │ │ ├── unnamed-chunk-20-1.svg
│ │ │ ├── unnamed-chunk-20-2.svg
│ │ │ ├── unnamed-chunk-21-1.svg
│ │ │ ├── unnamed-chunk-22-1.svg
│ │ │ ├── unnamed-chunk-23-1.svg
│ │ │ ├── unnamed-chunk-24-1.svg
│ │ │ ├── unnamed-chunk-5-1.svg
│ │ │ ├── unnamed-chunk-6-1.svg
│ │ │ ├── unnamed-chunk-7-1.svg
│ │ │ ├── unnamed-chunk-8-1.svg
│ │ │ └── unnamed-chunk-9-1.svg
│ ├── img
│ │ └── logo
│ │ │ └── ScPo-shield.png
│ └── libs
│ │ ├── elevate-section-attrs
│ │ └── elevate-section-attrs.js
│ │ ├── header-attrs
│ │ └── header-attrs.js
│ │ ├── jquery
│ │ └── jquery.min.js
│ │ ├── kePrint
│ │ └── kePrint.js
│ │ ├── lightable
│ │ └── lightable.css
│ │ └── remark-css
│ │ └── default.css
├── 01-recap
│ ├── libs
│ │ ├── header-attrs
│ │ │ └── header-attrs.js
│ │ └── remark-css
│ │ │ └── default.css
│ ├── recap1.Rmd
│ ├── recap1.html
│ └── recap1_files
│ │ └── figure-html
│ │ ├── biased pdf-1.svg
│ │ ├── competing pdfs-1.svg
│ │ ├── ex_bad_exog-1.svg
│ │ ├── ex_good_exog-1.svg
│ │ ├── example: pdf 2-1.svg
│ │ ├── example: pdf 3-1.svg
│ │ ├── example: pdf-1.svg
│ │ ├── ols vs lines 1-1.svg
│ │ ├── ols vs lines 3-1.svg
│ │ ├── ols vs lines 4-1.svg
│ │ ├── ols vs lines 5-1.svg
│ │ ├── ols vs lines 6-1.svg
│ │ ├── ols vs lines 7-1.svg
│ │ ├── plot ovb 1-1.svg
│ │ ├── plot ovb 2-1.svg
│ │ ├── plot ovb 3-1.svg
│ │ ├── plot ovb 4-1.svg
│ │ ├── plot ovb 5-1.svg
│ │ ├── pop1-1.svg
│ │ ├── sample1 scatter-1.svg
│ │ ├── sample1-1.svg
│ │ ├── sample2 scatter-1.svg
│ │ ├── sample2-1.svg
│ │ ├── sample3 scatter-1.svg
│ │ ├── sample3-1.svg
│ │ ├── scatter1-1.svg
│ │ ├── simulation ci-1.svg
│ │ ├── simulation p plot-1.svg
│ │ ├── simulation scatter-1.png
│ │ ├── simulation scatter2-1.png
│ │ ├── simulation t plot-1.svg
│ │ ├── t dist-1.svg
│ │ ├── unbiased pdf-1.svg
│ │ ├── variance bias-1.svg
│ │ ├── variance pdf-1.svg
│ │ └── vs lines 2-1.svg
├── 02-recap
│ ├── libs
│ │ ├── header-attrs
│ │ │ └── header-attrs.js
│ │ └── remark-css
│ │ │ └── default.css
│ ├── recap2.Rmd
│ ├── recap2.html
│ ├── recap2_files
│ │ └── figure-html
│ │ │ ├── dag1-1.svg
│ │ │ ├── dat plot 1-1.svg
│ │ │ ├── dat plot 2-1.svg
│ │ │ ├── int plot 1-1.svg
│ │ │ ├── int plot 2-1.svg
│ │ │ ├── log linear plot-1.svg
│ │ │ ├── log log plot-1.svg
│ │ │ ├── plot ovb 1-1.svg
│ │ │ ├── plot ovb 2-1.svg
│ │ │ ├── plot ovb 3-1.svg
│ │ │ ├── plot ovb 4-1.svg
│ │ │ ├── plot ovb 5-1.svg
│ │ │ ├── simulation ci-1.svg
│ │ │ ├── t dist-1.svg
│ │ │ ├── unnamed-chunk-4-1.svg
│ │ │ ├── unnamed-chunk-5-1.svg
│ │ │ ├── venn2-1.svg
│ │ │ └── venn_iv-1.svg
│ └── star1-1.png
├── 03-datatable
│ ├── 03-datatable.Rmd
│ ├── 03-datatable.html
│ ├── 03-datatable_files
│ │ └── figure-html
│ │ │ └── storms_ggplot-1.png
│ └── libs
│ │ ├── cols.css
│ │ ├── cols_macro.js
│ │ ├── header-attrs
│ │ └── header-attrs.js
│ │ └── remark-css
│ │ ├── default.css
│ │ ├── metropolis-fonts.css
│ │ └── metropolis.css
├── 04-IV
│ ├── 04-IV.Rmd
│ ├── 04-IV.html
│ ├── 04-IV_files
│ │ └── figure-html
│ │ │ ├── dag1-1.svg
│ │ │ ├── unnamed-chunk-2-1.svg
│ │ │ ├── unnamed-chunk-3-1.svg
│ │ │ ├── unnamed-chunk-4-1.svg
│ │ │ └── unnamed-chunk-5-1.svg
│ └── libs
│ │ ├── header-attrs
│ │ └── header-attrs.js
│ │ └── remark-css
│ │ └── default.css
├── 05-IV2
│ ├── 05-IV2.Rmd
│ ├── 05-IV2.html
│ ├── 05-IV2_files
│ │ └── figure-html
│ │ │ ├── IV-dag2-1.svg
│ │ │ ├── ak-mod-1.svg
│ │ │ ├── ak91-dummy-1.svg
│ │ │ ├── ak91-wage-1.svg
│ │ │ ├── mincer-1.svg
│ │ │ ├── mincer2-1.svg
│ │ │ ├── mincer3-1.svg
│ │ │ ├── mincer4-1.svg
│ │ │ └── se-plot-1.svg
│ └── libs
│ │ ├── header-attrs
│ │ └── header-attrs.js
│ │ ├── kePrint
│ │ └── kePrint.js
│ │ ├── lightable
│ │ └── lightable.css
│ │ └── remark-css
│ │ └── default.css
├── 06-panel
│ ├── 06-panel.Rmd
│ ├── 06-panel.html
│ ├── 06-panel_files
│ │ └── figure-html
│ │ │ ├── cri-dag-1.svg
│ │ │ ├── cri-dag2-1.svg
│ │ │ ├── dummy-1.svg
│ │ │ ├── unnamed-chunk-10-1.svg
│ │ │ ├── unnamed-chunk-15-1.svg
│ │ │ ├── unnamed-chunk-4-1.svg
│ │ │ ├── unnamed-chunk-8-1.svg
│ │ │ └── unnamed-chunk-9-1.svg
│ └── libs
│ │ ├── header-attrs
│ │ └── header-attrs.js
│ │ ├── kePrint
│ │ └── kePrint.js
│ │ ├── lightable
│ │ └── lightable.css
│ │ └── remark-css
│ │ └── default.css
├── 07-probit
│ ├── 07-probit.Rmd
│ ├── 07-probit.html
│ ├── 07-probit_files
│ │ └── figure-html
│ │ │ ├── cdfs-1.svg
│ │ │ ├── saturated-1.svg
│ │ │ ├── unnamed-chunk-1-1.svg
│ │ │ ├── unnamed-chunk-11-1.svg
│ │ │ └── unnamed-chunk-3-1.svg
│ └── libs
│ │ ├── header-attrs
│ │ └── header-attrs.js
│ │ ├── kePrint
│ │ └── kePrint.js
│ │ ├── lightable
│ │ └── lightable.css
│ │ └── remark-css
│ │ └── default.css
├── 08-learning
│ ├── 08-learning.Rmd
│ ├── 08-learning.html
│ ├── imgs
│ │ ├── 2.1.pdf
│ │ ├── 2.10.pdf
│ │ ├── 2.10.png
│ │ ├── 2.11.pdf
│ │ ├── 2.11.png
│ │ ├── 2.12.pdf
│ │ ├── 2.12.png
│ │ ├── 2.13.pdf
│ │ ├── 2.14.pdf
│ │ ├── 2.15.pdf
│ │ ├── 2.16.pdf
│ │ ├── 2.17.pdf
│ │ ├── 2.2.pdf
│ │ ├── 2.3.pdf
│ │ ├── 2.3.png
│ │ ├── 2.4.pdf
│ │ ├── 2.4.png
│ │ ├── 2.5.pdf
│ │ ├── 2.5.png
│ │ ├── 2.6.pdf
│ │ ├── 2.6.png
│ │ ├── 2.7.pdf
│ │ ├── 2.7.png
│ │ ├── 2.8.pdf
│ │ ├── 2.8.png
│ │ ├── 2.9.pdf
│ │ ├── 2.9.png
│ │ └── app.gif
│ └── libs
│ │ ├── header-attrs
│ │ └── header-attrs.js
│ │ └── remark-css
│ │ └── default.css
├── 09-unsupervised
│ ├── 09-unsupervised.Rmd
│ ├── 09-unsupervised.html
│ ├── 09-unsupervised_files
│ │ └── figure-html
│ │ │ ├── unnamed-chunk-11-1.svg
│ │ │ ├── unnamed-chunk-12-1.svg
│ │ │ ├── unnamed-chunk-13-1.svg
│ │ │ ├── unnamed-chunk-14-1.svg
│ │ │ ├── unnamed-chunk-15-1.svg
│ │ │ ├── unnamed-chunk-16-1.svg
│ │ │ ├── unnamed-chunk-17-1.svg
│ │ │ ├── unnamed-chunk-18-1.svg
│ │ │ ├── unnamed-chunk-19-1.svg
│ │ │ ├── unnamed-chunk-2-1.svg
│ │ │ ├── unnamed-chunk-20-1.svg
│ │ │ ├── unnamed-chunk-21-1.svg
│ │ │ ├── unnamed-chunk-22-1.svg
│ │ │ ├── unnamed-chunk-23-1.svg
│ │ │ ├── unnamed-chunk-24-1.svg
│ │ │ ├── unnamed-chunk-25-1.svg
│ │ │ ├── unnamed-chunk-26-1.svg
│ │ │ ├── unnamed-chunk-27-1.svg
│ │ │ ├── unnamed-chunk-28-1.svg
│ │ │ ├── unnamed-chunk-29-1.svg
│ │ │ ├── unnamed-chunk-3-1.svg
│ │ │ ├── unnamed-chunk-30-1.svg
│ │ │ ├── unnamed-chunk-31-1.svg
│ │ │ ├── unnamed-chunk-32-1.svg
│ │ │ ├── unnamed-chunk-33-1.svg
│ │ │ ├── unnamed-chunk-34-1.svg
│ │ │ ├── unnamed-chunk-36-1.svg
│ │ │ ├── unnamed-chunk-37-1.svg
│ │ │ ├── unnamed-chunk-38-1.svg
│ │ │ ├── unnamed-chunk-39-1.svg
│ │ │ ├── unnamed-chunk-4-1.svg
│ │ │ ├── unnamed-chunk-40-1.svg
│ │ │ ├── unnamed-chunk-41-1.svg
│ │ │ ├── unnamed-chunk-6-1.svg
│ │ │ └── unnamed-chunk-8-1.svg
│ └── libs
│ │ ├── header-attrs
│ │ └── header-attrs.js
│ │ └── remark-css
│ │ └── default.css
└── template
│ ├── learning.R
│ ├── libs
│ └── remark-css
│ │ └── default.css
│ ├── pca.R
│ ├── template.Rmd
│ └── template.html
├── libs
├── partials
│ └── header.html
├── remark-css-0.0.1
│ └── default.css
└── remark-css
│ └── default.css
└── rds
├── balls_percentile_cis.rds
├── iris_inc.rds
├── iris_shapefile_2015.dbf
├── iris_shapefile_2015.prj
├── iris_shapefile_2015.rds
├── iris_shapefile_2015.shp
├── iris_shapefile_2015.shx
├── pasta_percentile_cis.rds
└── shuffled_data.rds
/.gitignore:
--------------------------------------------------------------------------------
1 | .Rproj.user
2 | .Rhistory
3 | .RData
4 | .Ruserdata
5 | *_cache
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # **Advanced Econometrics at SciencesPo**
2 |
3 | This is the syllabus for the 2nd year course *advanced econometrics* offered by the department of economics at SciencesPo Paris.
4 |
5 | ## Prerequisites
6 |
7 | You need to have taken the course [**Introduction to Econometrics with R**](https://scpoecon.github.io/ScPoEconometrics/) at SciencesPo. Alternatively, if you are an exchange student, you need to have taken a course that covers the same syllabus. You will have to make sure that you are familiar with `R` knowledge we accumulate in that course as well.
8 |
9 | ## Overview
10 |
11 | We continue with our practical approach to learning Econometrics and R where we left it in the introductory part “Introduction to Econometrics with R”. We will learn about an important method to establish casual relationships in non-experimental data, called “Instrumental Variables”. We will learn about panel data, that is, data which tracks individuals over time. We will look at situations when our outcome data is discrete in nature, like “subject i chose option A (and not B)”. And we will look at a range of simple machine learning methods which are helpful for classification and prediction tasks.
12 |
13 |
14 | ## Syllabus and Slides
15 |
16 | Notice that several of those lectures extend over two sessions.
17 |
18 |
19 | Lecture 0: Introduction and contiuation from intro course: Difference-in-Differences [[HTML](https://raw.githack.com/ScPoEcon/Advanced-Metrics-slides/master/lectures/00-DID/chapter_did.html)]
20 |
21 | Lecture 1: Introduction, Logistics and Recap 1 from intro course. Uncertainty in regression estimates, orthogonality of error, BLUE property. [[HTML](https://raw.githack.com/ScPoEcon/Advanced-Metrics-slides/master/lectures/01-recap/recap1.html)]
22 |
23 | Lecture 2: Recap 2 from intro course. What's a *model*, omitted variable bias, interpreting coefficients, the log transformation [[HTML](https://raw.githack.com/ScPoEcon/Advanced-Metrics-slides/master/lectures/02-recap/recap2.html)]
24 |
25 | Lecture 3: intro to the `data.table` package [[HTML](https://raw.githack.com/ScPoEcon/Advanced-Metrics-slides/master/lectures/03-datatable/03-datatable.html)]
26 |
27 | Lecture 4: Instrumental Variables and Causality 1. John Snow's Cholera Experiment as a motivation for the IV estimator, using a DAG to think about the exclusion restriction, the Wald estimator. [[HTML](https://raw.githack.com/ScPoEcon/Advanced-Metrics-slides/master/lectures/04-IV/04-IV.html)]
28 |
29 | Lecture 5: Instrumental Variables and Causality 2. 2SLS, returns to schooling and ability bias, replicating Angrist and Krueger (1991), IV mechanics, identification and inference, weak instruments [[HTML](https://raw.githack.com/ScPoEcon/Advanced-Metrics-slides/master/lectures/05-IV2/05-IV2.html)]
30 |
31 | Lecture 6: Panel Data 1: What, How and Why? Application to crime rates at county level, within and between variation, the within transformation, running panel regressions in R [[HTML](https://raw.githack.com/ScPoEcon/Advanced-Metrics-slides/master/lectures/06-panel/06-panel.html)]
32 |
33 | Lecture 7: Discrete Outcomes: Logit and Probit. Bernoulli reminder, Mroz dataset, the linear probability model, the saturated LPM, logit and probit marginal effects, Goodness of fit in non-linear binary response models. [[HTML](https://raw.githack.com/ScPoEcon/Advanced-Metrics-slides/master/lectures/07-probit/07-probit.html)]
34 |
35 | Lecture 8: Intro to Statistical (or *Machine*) Learning 1: the bias-variance-tradeoff, taxonomy of methods, parametric vs non-parametric, linear vs nonlinear, relationship between variance, bias and MSE [[HTML](https://raw.githack.com/ScPoEcon/Advanced-Metrics-slides/master/lectures/08-learning/08-learning.html)]
36 |
37 | Lecture 9: Intro to Statistical (or *Machine*) Learning 2: Subset selection (Lasso and Ridge regressions), unsupervised learning (PCA and K-means clustering) [[HTML](https://raw.githack.com/ScPoEcon/Advanced-Metrics-slides/master/lectures/09-unsupervised/09-unsupervised.html)]
38 |
39 | ## Legal
40 |
41 | You can copy and adapt this material for your purposes, as long as you give appropriate credit and share the work yourself under same terms. Of course you can use the slides to teach in your classrooms. *Appropriate Credit* means that somewhere in your slides there is link back to this repo, indicating that this is what you are building upon. Click on the icon for details.
42 |
43 |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
44 |
45 | ## How to build
46 |
47 | * These are simply Rmarkdown slides.
48 | * So, in Rstudio, just click *knit*.
49 | * To print slides as PDF, do
50 | ```decktape chapter1.html chapter1.pdf --chrome-arg=--disable-web-security```
51 | using the awesome [decktape](https://github.com/astefanutti/decktape)
52 |
--------------------------------------------------------------------------------
/ScPo-advanced.Rproj:
--------------------------------------------------------------------------------
1 | Version: 1.0
2 |
3 | RestoreWorkspace: No
4 | SaveWorkspace: No
5 | AlwaysSaveHistory: Default
6 |
7 | EnableCodeIndexing: Yes
8 | UseSpacesForTab: Yes
9 | NumSpacesForTab: 4
10 | Encoding: UTF-8
11 |
12 | RnwWeave: Sweave
13 | LaTeX: pdfLaTeX
14 |
--------------------------------------------------------------------------------
/css/scpo-fonts.css:
--------------------------------------------------------------------------------
1 | /* Add maven for code font (keep other xaringan defaults */
2 | @import url(https://fonts.googleapis.com/css?family=Inconsolata);
3 | @import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
4 | @import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
5 | @import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700);
6 |
7 | body { font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif; }
8 | h1, h2, h3 {
9 | font-family: 'Yanone Kaffeesatz';
10 | font-weight: normal;
11 | }
12 |
13 | .remark-code {
14 | font-family: 'Inconsolata', monospace;
15 | color: #515151;
16 | /*color: #818181;*/
17 | /*color: rgb(249, 38, 114);*/
18 | }
19 |
20 | .remark-inline-code {
21 | font-family: 'Inconsolata', monospace;
22 | color: #515151;
23 | background-color: rgba(217, 5, 2, 0.2);
24 | border-radius: 5px; /* Making border radius */
25 | width: auto; /* Making auto-sizable width */
26 | height: auto; /* Making auto-sizable height */
27 | padding: 0px 2px 1px 2px; /*Making space around letters */
28 | /*color: #818181;*/
29 | /*color: rgb(249, 38, 114);*/
30 | }
31 | .remark-code-line-highlighted { background-color: #ffff88; }
32 |
--------------------------------------------------------------------------------
/css/scpo.css:
--------------------------------------------------------------------------------
1 | /*
2 | CSS for xaringan slides in RU flavor
3 | Author: Joseph V. Casillas
4 | Updated: 03/06/2018
5 |
6 | Modified by Florian Oswald for ScPo
7 | 18/08/2019
8 | */
9 |
10 | /* Package defaults that we slightly tweak */
11 |
12 | .remark-slide-content { font-size: 23px; }
13 |
14 | pre {
15 | display: block;
16 | font-family: monospace;
17 | white-space: pre;
18 | margin-top: 0em;
19 | margin-right: 0px;
20 | margin-bottom: 0.3em;
21 | margin-left: 0px;
22 | }
23 |
24 | a, a > code {
25 | color: #d90502;
26 | text-decoration: none;
27 |
28 | }
29 |
30 |
31 | /* slightly lower and bigger than default */
32 | .footnote {
33 | position: absolute;
34 | bottom: 1em;
35 | padding-right: 4em;
36 | font-size: 85%;
37 | }
38 |
39 | /* important code slightly red
40 | .remark-code-line-highlighted {
41 | background-color: #FFD3DE !important;
42 | }
43 | */
44 |
45 | /* color tweak */
46 | .inverse {
47 | background-color: #ffebf0;
48 | color: #353632;
49 | text-shadow: none;
50 | }
51 |
52 | /* slightly spacing change */
53 | .inverse h1, .inverse h2, .inverse h3 {
54 | color: #0729a6;
55 | line-height: 1.0em;
56 | }
57 |
58 | .inverse remark-code-line {
59 | background-color: #e0e1df;
60 | }
61 |
62 | /* Two-column layout (slightly wider for aspect ration) */
63 | .left-column {
64 | color: #777;
65 | width: 25%;
66 | height: 92%;
67 | float: left;
68 | }
69 |
70 | .left-column h2:last-of-type, .left-column h3:last-child {
71 | color: #000;
72 | }
73 |
74 | /* slightly thiner to suppor aspect ration */
75 | .right-column {
76 | width: 70%;
77 | float: right;
78 | padding-top: 1em;
79 | }
80 |
81 | /* Two-column layout (wide left col) */
82 | .left-wide {
83 | width: 70%;
84 | float: left;
85 | }
86 |
87 | .right-thin {
88 | width: 30%;
89 | float: right;
90 | }
91 |
92 | /* Two-column layout (wide left col) */
93 | .right-wide {
94 | width: 70%;
95 | float: right;
96 | }
97 |
98 | .left-thin {
99 | width: 30%;
100 | float: left;
101 | }
102 |
103 | .pull-left {
104 | float: left;
105 | width: 48%;
106 | }
107 |
108 | .pull-right {
109 | float: right;
110 | width: 48%;
111 | }
112 |
113 | .center {
114 | margin: auto;
115 | width: 60%;
116 | padding: 10px;
117 | text-align: center;
118 | }
119 |
120 | .pull-right ~ * {
121 | clear: both;
122 | }
123 |
124 | img, video, iframe {
125 | max-width: 100%;
126 | }
127 |
128 | blockquote {
129 | border-left: solid 5px lightgray;
130 | padding-left: 1em;
131 | }
132 |
133 | /* removed RU table adjustments*/
134 |
135 |
136 | /* leave this alone */
137 | @page { margin: 0; }
138 | @media print {
139 | .remark-slide-scaler {
140 | width: 100% !important;
141 | height: 100% !important;
142 | transform: scale(1) !important;
143 | top: 0 !important;
144 | left: 0 !important;
145 | }
146 | }
147 |
148 | /*~~~~~~~~~~~~~~*/
149 | /* RU additions */
150 | /*~~~~~~~~~~~~~~*/
151 |
152 | /* Title slide */
153 |
154 | /* Add image and change bg color */
155 |
156 | /* changing background image to ScPo*/
157 | .title-slide {
158 | background-image: url("../img/logo/ScPo-econ.png");
159 | background-position: 9% 30%;
160 | background-size: 300px;
161 | background-color: #fff;
162 | padding-left: 100px; /* delete this for 4:3 aspect ratio */
163 | }
164 |
165 | /* H1 fonts */
166 | .title-slide h1 {
167 | color: #515151;
168 | padding-top: 250px;
169 | font-weight: normal;
170 | font-size: 45px;
171 | line-height: 0.05;
172 | text-align: left;
173 | text-shadow: none;
174 | padding-bottom: 18px;
175 | margin-bottom: 18px;
176 | }
177 |
178 | /* H2 fonts */
179 | .title-slide h2 {
180 | color: #d90502;
181 | font-size: 35px;
182 | text-align: left;
183 | text-shadow: none;
184 | padding-top: 0px;
185 | margin-top: 0px;
186 | }
187 |
188 | /* H3 fonts */
189 | .title-slide h3 {
190 | font-size: 28px;
191 | font-weight: normal;
192 | color: #666666;
193 | text-align: left;
194 | text-shadow: none;
195 | padding: 0px;
196 | margin: 0px;
197 | line-height: 1;
198 | }
199 |
200 | /* Remove slide count */
201 | .title-slide .remark-slide-number {
202 | text-shadow: none;
203 | }
204 |
205 |
206 | /*add logo in footer*/
207 | .my-footer {
208 | position: absolute;
209 | bottom: 15px;
210 | left: 15px;
211 | height: 60px;
212 | width: 100%;
213 | }
214 |
215 | /*~~~~~~~~~~~~~~~~~~*/
216 | /* SECTION DIVIDERS */
217 | /*~~~~~~~~~~~~~~~~~~*/
218 |
219 | /* section divider red */
220 | .separator {
221 | background-color: #d90502;
222 | padding-left: 100px; /* delete this for 4:3 aspect ratio */
223 | }
224 |
225 | /* section divider red H1 fonts */
226 | .separator h1, .separator h2, .separator h3, .separator p {
227 | color: #fff;
228 | }
229 |
230 | /* section divider grey */
231 | .title-slide-section-grey {
232 | background-color: #515151;
233 | padding-left: 100px; /* delete this for 4:3 aspect ratio */
234 | }
235 |
236 | /* section divider grey H1 fonts */
237 | .title-slide-section-grey h1, .title-slide-section-grey h2, .title-slide-section-grey h3 {
238 | color: #fff;
239 | }
240 |
241 | .title-slide-section-grey p {
242 | color: #fff;
243 | }
244 |
245 | /*~~~~~~~~~~~~~~~~~~*/
246 | /* FINAL SLIDE */
247 | /*~~~~~~~~~~~~~~~~~~*/
248 |
249 | .title-slide-final {
250 | background-color: #fff;
251 | padding-left: 100px;
252 | text-shadow: 0 0 20px #333;
253 | text-align: center;
254 | }
255 |
256 |
257 | .title-slide-final h1 {
258 | color: #d90502;
259 | }
260 |
261 |
262 | /*~~~~~~~~~~~~~~~~~~~~*/
263 | /* Global adjustments */
264 | /*~~~~~~~~~~~~~~~~~~~~*/
265 |
266 | /* Add padding to all slides for 16:9 aspect ratio */
267 | .remark-slide-content {
268 | padding-left: 100px; /* delete this for 4:3 aspect ratio */
269 | }
270 |
271 | /* Color adjustments for text */
272 |
273 | /* Make bold syntax compile to ScPo-red */
274 | strong {
275 | color: #d90502;
276 | }
277 |
278 | .ScPored {
279 | color: #d90502;
280 | }
281 |
282 | /* Pink text */
283 | .red {
284 | color: #d90502 !important;
285 | }
286 |
287 | /* Add blue tag */
288 | .blue {
289 | color: #0000CC;
290 | font-weight: bold;
291 | }
292 |
293 | /* Add grey tag */
294 | .grey {
295 | color: #515151;
296 | }
297 |
298 | .lightgrey {
299 | color: #818181;
300 | }
301 |
302 | /* Force black */
303 | .black {
304 | color: black;
305 | font-weight: bold;
306 | }
307 |
308 | /* Add white tag */
309 | .white {
310 | color: white;
311 | }
312 |
313 | /* Color adjustments to headers */
314 | h1 {
315 | color: #d90502;
316 | }
317 |
318 | h3 {
319 | color: #515151;
320 | }
321 |
322 | /* Font size tags */
323 | .big {
324 | font-size: 1.5em;
325 | }
326 |
327 | /* ru blockquote */
328 | ru-blockquote {
329 | display: block;
330 | margin-top: 1em;
331 | margin-bottom: 1em;
332 | margin-left: 40px;
333 | margin-right: 40px;
334 | border-left: solid 10px #d90502;
335 | background-color: #818181;
336 | padding: 1em;
337 | color: #fff;
338 | -moz-border-radius: 5px;
339 | -webkit-border-radius: 5px;
340 | }
341 |
342 | .large { font-size: 120% }
343 | .small { font-size: 90% }
344 |
345 | .super{
346 | vertical-align: super;
347 | font-size: 70%;
348 | }
349 | .sub{
350 | vertical-align: sub;
351 | font-size: 70%;
352 | }
353 |
354 | /* Create a highlighted class called 'hi' */
355 | .hi {
356 | font-weight: 600;
357 | color: #d90502 !important;
358 | }
359 | .hi-pink {
360 | font-weight: 600;
361 | color: #e64173 !important;
362 | }
363 | .hi-slate {
364 | font-weight: 600;
365 | color: #314f4f !important;
366 | }
367 | .hi-turquoise {
368 | font-weight: 600;
369 | color: #44C1C4 !important;
370 | }
371 | .hi-purple {
372 | font-weight: 600;
373 | color: #6A5ACD !important;
374 | }
375 | .hi-orange {
376 | font-weight: 600;
377 | color: #FFA500 !important;
378 | }
379 | .hi-yellow{
380 | font-weight: 600;
381 | color: #D8BD44 !important;
382 | }
383 | .hi-green {
384 | font-weight: 600;
385 | color: #7CAE96 !important;
386 | }
387 | .hi-grey {
388 | font-weight: 600;
389 | color: #8AA19E !important;
390 | }
391 | .hi-blue {
392 | font-weight: 600;
393 | color: #54778B !important;
394 | }
395 | .hi-red {
396 | font-weight: 600;
397 | color: #fb6107 !important;
398 | }
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.1.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.1.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.10.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.10.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.10.png
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.11.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.11.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.11.png
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.12.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.12.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.12.png
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.13.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.13.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.14.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.14.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.15.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.15.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.16.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.16.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.17.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.17.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.2.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.2.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.3.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.3.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.3.png
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.4.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.4.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.4.png
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.5.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.5.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.5.png
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.6.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.6.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.6.png
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.7.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.7.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.7.png
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.8.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.8.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.8.png
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.9.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.9.pdf
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/2.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/2.9.png
--------------------------------------------------------------------------------
/img/ISLR/Chapter2/app.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ISLR/Chapter2/app.gif
--------------------------------------------------------------------------------
/img/IV-dag.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/IV-dag.png
--------------------------------------------------------------------------------
/img/Kensington_slums_large.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/Kensington_slums_large.jpg
--------------------------------------------------------------------------------
/img/clustering/c1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/clustering/c1.png
--------------------------------------------------------------------------------
/img/clustering/c10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/clustering/c10.png
--------------------------------------------------------------------------------
/img/clustering/c2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/clustering/c2.png
--------------------------------------------------------------------------------
/img/clustering/c3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/clustering/c3.png
--------------------------------------------------------------------------------
/img/clustering/c4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/clustering/c4.png
--------------------------------------------------------------------------------
/img/clustering/c5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/clustering/c5.png
--------------------------------------------------------------------------------
/img/clustering/c6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/clustering/c6.png
--------------------------------------------------------------------------------
/img/clustering/c7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/clustering/c7.png
--------------------------------------------------------------------------------
/img/clustering/c8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/clustering/c8.png
--------------------------------------------------------------------------------
/img/clustering/c9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/clustering/c9.png
--------------------------------------------------------------------------------
/img/crime-dag.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/crime-dag.png
--------------------------------------------------------------------------------
/img/crime-dag2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/crime-dag2.png
--------------------------------------------------------------------------------
/img/ex/title.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/ex/title.png
--------------------------------------------------------------------------------
/img/father-thames.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/father-thames.jpg
--------------------------------------------------------------------------------
/img/gifs/alert.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/gifs/alert.png
--------------------------------------------------------------------------------
/img/gifs/help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/gifs/help.png
--------------------------------------------------------------------------------
/img/gifs/panel.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/gifs/panel.gif
--------------------------------------------------------------------------------
/img/gifs/ray-paris.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/gifs/ray-paris.mp4
--------------------------------------------------------------------------------
/img/gifs/ray.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/gifs/ray.mp4
--------------------------------------------------------------------------------
/img/gifs/ray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/gifs/ray.png
--------------------------------------------------------------------------------
/img/gifs/wages.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/gifs/wages.gif
--------------------------------------------------------------------------------
/img/logo/ScPo-econ.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/logo/ScPo-econ.png
--------------------------------------------------------------------------------
/img/logo/ScPo-shield.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/logo/ScPo-shield.png
--------------------------------------------------------------------------------
/img/logo/ggplot2.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/img/photos/SSR_cone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/SSR_cone.png
--------------------------------------------------------------------------------
/img/photos/Smoking_lung_cancer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/Smoking_lung_cancer.png
--------------------------------------------------------------------------------
/img/photos/adjusted_death_rates.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/adjusted_death_rates.png
--------------------------------------------------------------------------------
/img/photos/age_by_smoking_status.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/age_by_smoking_status.png
--------------------------------------------------------------------------------
/img/photos/bootstrap1.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/bootstrap1.JPG
--------------------------------------------------------------------------------
/img/photos/bootstrap2.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/bootstrap2.JPG
--------------------------------------------------------------------------------
/img/photos/ci_diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/ci_diagram.png
--------------------------------------------------------------------------------
/img/photos/correlation_funny.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/correlation_funny.png
--------------------------------------------------------------------------------
/img/photos/ex_cigar_subclassif.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/ex_cigar_subclassif.png
--------------------------------------------------------------------------------
/img/photos/fundamental_pb_inference.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/fundamental_pb_inference.png
--------------------------------------------------------------------------------
/img/photos/fusilli-tricolore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/fusilli-tricolore.png
--------------------------------------------------------------------------------
/img/photos/gt_error_table.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/gt_error_table.png
--------------------------------------------------------------------------------
/img/photos/gt_error_table_ht.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/gt_error_table_ht.png
--------------------------------------------------------------------------------
/img/photos/hist_building.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/hist_building.gif
--------------------------------------------------------------------------------
/img/photos/hist_building_vline.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/hist_building_vline.gif
--------------------------------------------------------------------------------
/img/photos/ht.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/ht.png
--------------------------------------------------------------------------------
/img/photos/manip_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/manip_1.png
--------------------------------------------------------------------------------
/img/photos/manip_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/manip_2.png
--------------------------------------------------------------------------------
/img/photos/md-bank.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/md-bank.jpg
--------------------------------------------------------------------------------
/img/photos/md-bank2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/md-bank2.jpg
--------------------------------------------------------------------------------
/img/photos/md-pennies.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/md-pennies.jpg
--------------------------------------------------------------------------------
/img/photos/min_wage_parallel_trends.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/min_wage_parallel_trends.png
--------------------------------------------------------------------------------
/img/photos/nj_penn_map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/nj_penn_map.png
--------------------------------------------------------------------------------
/img/photos/pasta/pasta_bowl.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/pasta_bowl.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample1.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample1.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample10.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample10.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample11.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample11.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample12.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample12.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample13.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample13.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample14.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample14.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample15.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample15.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample16.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample16.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample17.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample17.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample18.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample18.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample19.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample19.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample2.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample2.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample3.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample3.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample4.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample4.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample5.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample5.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample6.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample6.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample7.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample7.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample8.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample8.JPG
--------------------------------------------------------------------------------
/img/photos/pasta/sample9.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta/sample9.JPG
--------------------------------------------------------------------------------
/img/photos/pasta1.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta1.JPG
--------------------------------------------------------------------------------
/img/photos/pasta2.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta2.JPG
--------------------------------------------------------------------------------
/img/photos/pasta3.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta3.JPG
--------------------------------------------------------------------------------
/img/photos/pasta4.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta4.JPG
--------------------------------------------------------------------------------
/img/photos/pasta5.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta5.JPG
--------------------------------------------------------------------------------
/img/photos/pasta6.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/pasta6.JPG
--------------------------------------------------------------------------------
/img/photos/power.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/power.png
--------------------------------------------------------------------------------
/img/photos/raw_death_rates.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/raw_death_rates.png
--------------------------------------------------------------------------------
/img/photos/spurious.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/spurious.png
--------------------------------------------------------------------------------
/img/photos/standard_normal_distrib.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/standard_normal_distrib.png
--------------------------------------------------------------------------------
/img/photos/transition.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/transition.png
--------------------------------------------------------------------------------
/img/photos/visualize.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/photos/visualize.png
--------------------------------------------------------------------------------
/img/simulation-scatter-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/simulation-scatter-1.png
--------------------------------------------------------------------------------
/img/slum.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/slum.jpg
--------------------------------------------------------------------------------
/img/snow-map.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/snow-map.jpg
--------------------------------------------------------------------------------
/img/snow-supply.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/img/snow-supply.jpg
--------------------------------------------------------------------------------
/js/ru_xaringan.js:
--------------------------------------------------------------------------------
1 |
2 | // allow image sizing using percentage
3 | remark.macros.scale = function (percentage) {
4 | var url = this;
5 | return '';
6 | };
7 |
8 |
9 |
--------------------------------------------------------------------------------
/lectures/00-DID/chapter_did.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/lectures/00-DID/chapter_did.pdf
--------------------------------------------------------------------------------
/lectures/00-DID/img/logo/ScPo-shield.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/lectures/00-DID/img/logo/ScPo-shield.png
--------------------------------------------------------------------------------
/lectures/00-DID/libs/elevate-section-attrs/elevate-section-attrs.js:
--------------------------------------------------------------------------------
1 | $(function() {
2 | $("div.section[class*='level'], section[class*='level']").each(function(i, el) {
3 | var $section = $(el);
4 | var $header = $section.children().filter(":header").first();
5 | if ($header.length === 0) return;
6 | var attrs = $header[0].attributes;
7 | for (var a = 0; a < attrs.length; a++) {
8 | var nm = attrs[a].name;
9 | var val = attrs[a].value;
10 | if (nm === "class") {
11 | $section.addClass(val);
12 | $header.removeClass(val);
13 | continue;
14 | }
15 | $section.attr(nm, val);
16 | $header.attr(nm, null);
17 | }
18 | });
19 | });
20 |
21 |
--------------------------------------------------------------------------------
/lectures/00-DID/libs/header-attrs/header-attrs.js:
--------------------------------------------------------------------------------
1 | // Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2 | // be compatible with the behavior of Pandoc < 2.8).
3 | document.addEventListener('DOMContentLoaded', function(e) {
4 | var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
5 | var i, h, a;
6 | for (i = 0; i < hs.length; i++) {
7 | h = hs[i];
8 | if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
9 | a = h.attributes;
10 | while (a.length > 0) h.removeAttribute(a[0].name);
11 | }
12 | });
13 |
--------------------------------------------------------------------------------
/lectures/00-DID/libs/kePrint/kePrint.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function(){
2 | if (typeof $('[data-toggle="tooltip"]').tooltip === 'function') {
3 | $('[data-toggle="tooltip"]').tooltip();
4 | }
5 | if ($('[data-toggle="popover"]').popover === 'function') {
6 | $('[data-toggle="popover"]').popover();
7 | }
8 | });
9 |
--------------------------------------------------------------------------------
/lectures/00-DID/libs/lightable/lightable.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * lightable v0.0.1
3 | * Copyright 2020 Hao Zhu
4 | * Licensed under MIT (https://github.com/haozhu233/kableExtra/blob/master/LICENSE)
5 | */
6 |
7 | .lightable-minimal {
8 | border-collapse: separate;
9 | border-spacing: 16px 1px;
10 | width: 100%;
11 | margin-bottom: 10px;
12 | }
13 |
14 | .lightable-minimal td {
15 | margin-left: 5px;
16 | margin-right: 5px;
17 | }
18 |
19 | .lightable-minimal th {
20 | margin-left: 5px;
21 | margin-right: 5px;
22 | }
23 |
24 | .lightable-minimal thead tr:last-child th {
25 | border-bottom: 2px solid #00000050;
26 | empty-cells: hide;
27 |
28 | }
29 |
30 | .lightable-minimal tbody tr:first-child td {
31 | padding-top: 0.5em;
32 | }
33 |
34 | .lightable-minimal.lightable-hover tbody tr:hover {
35 | background-color: #f5f5f5;
36 | }
37 |
38 | .lightable-minimal.lightable-striped tbody tr:nth-child(even) {
39 | background-color: #f5f5f5;
40 | }
41 |
42 | .lightable-classic {
43 | border-top: 0.16em solid #111111;
44 | border-bottom: 0.16em solid #111111;
45 | width: 100%;
46 | margin-bottom: 10px;
47 | margin: 10px 5px;
48 | }
49 |
50 | .lightable-classic tfoot tr td {
51 | border: 0;
52 | }
53 |
54 | .lightable-classic tfoot tr:first-child td {
55 | border-top: 0.14em solid #111111;
56 | }
57 |
58 | .lightable-classic caption {
59 | color: #222222;
60 | }
61 |
62 | .lightable-classic td {
63 | padding-left: 5px;
64 | padding-right: 5px;
65 | color: #222222;
66 | }
67 |
68 | .lightable-classic th {
69 | padding-left: 5px;
70 | padding-right: 5px;
71 | font-weight: normal;
72 | color: #222222;
73 | }
74 |
75 | .lightable-classic thead tr:last-child th {
76 | border-bottom: 0.10em solid #111111;
77 | }
78 |
79 | .lightable-classic.lightable-hover tbody tr:hover {
80 | background-color: #F9EEC1;
81 | }
82 |
83 | .lightable-classic.lightable-striped tbody tr:nth-child(even) {
84 | background-color: #f5f5f5;
85 | }
86 |
87 | .lightable-classic-2 {
88 | border-top: 3px double #111111;
89 | border-bottom: 3px double #111111;
90 | width: 100%;
91 | margin-bottom: 10px;
92 | }
93 |
94 | .lightable-classic-2 tfoot tr td {
95 | border: 0;
96 | }
97 |
98 | .lightable-classic-2 tfoot tr:first-child td {
99 | border-top: 3px double #111111;
100 | }
101 |
102 | .lightable-classic-2 caption {
103 | color: #222222;
104 | }
105 |
106 | .lightable-classic-2 td {
107 | padding-left: 5px;
108 | padding-right: 5px;
109 | color: #222222;
110 | }
111 |
112 | .lightable-classic-2 th {
113 | padding-left: 5px;
114 | padding-right: 5px;
115 | font-weight: normal;
116 | color: #222222;
117 | }
118 |
119 | .lightable-classic-2 tbody tr:last-child td {
120 | border-bottom: 3px double #111111;
121 | }
122 |
123 | .lightable-classic-2 thead tr:last-child th {
124 | border-bottom: 1px solid #111111;
125 | }
126 |
127 | .lightable-classic-2.lightable-hover tbody tr:hover {
128 | background-color: #F9EEC1;
129 | }
130 |
131 | .lightable-classic-2.lightable-striped tbody tr:nth-child(even) {
132 | background-color: #f5f5f5;
133 | }
134 |
135 | .lightable-material {
136 | min-width: 100%;
137 | white-space: nowrap;
138 | table-layout: fixed;
139 | font-family: Roboto, sans-serif;
140 | border: 1px solid #EEE;
141 | border-collapse: collapse;
142 | margin-bottom: 10px;
143 | }
144 |
145 | .lightable-material tfoot tr td {
146 | border: 0;
147 | }
148 |
149 | .lightable-material tfoot tr:first-child td {
150 | border-top: 1px solid #EEE;
151 | }
152 |
153 | .lightable-material th {
154 | height: 56px;
155 | padding-left: 16px;
156 | padding-right: 16px;
157 | }
158 |
159 | .lightable-material td {
160 | height: 52px;
161 | padding-left: 16px;
162 | padding-right: 16px;
163 | border-top: 1px solid #eeeeee;
164 | }
165 |
166 | .lightable-material.lightable-hover tbody tr:hover {
167 | background-color: #f5f5f5;
168 | }
169 |
170 | .lightable-material.lightable-striped tbody tr:nth-child(even) {
171 | background-color: #f5f5f5;
172 | }
173 |
174 | .lightable-material.lightable-striped tbody td {
175 | border: 0;
176 | }
177 |
178 | .lightable-material.lightable-striped thead tr:last-child th {
179 | border-bottom: 1px solid #ddd;
180 | }
181 |
182 | .lightable-material-dark {
183 | min-width: 100%;
184 | white-space: nowrap;
185 | table-layout: fixed;
186 | font-family: Roboto, sans-serif;
187 | border: 1px solid #FFFFFF12;
188 | border-collapse: collapse;
189 | margin-bottom: 10px;
190 | background-color: #363640;
191 | }
192 |
193 | .lightable-material-dark tfoot tr td {
194 | border: 0;
195 | }
196 |
197 | .lightable-material-dark tfoot tr:first-child td {
198 | border-top: 1px solid #FFFFFF12;
199 | }
200 |
201 | .lightable-material-dark th {
202 | height: 56px;
203 | padding-left: 16px;
204 | padding-right: 16px;
205 | color: #FFFFFF60;
206 | }
207 |
208 | .lightable-material-dark td {
209 | height: 52px;
210 | padding-left: 16px;
211 | padding-right: 16px;
212 | color: #FFFFFF;
213 | border-top: 1px solid #FFFFFF12;
214 | }
215 |
216 | .lightable-material-dark.lightable-hover tbody tr:hover {
217 | background-color: #FFFFFF12;
218 | }
219 |
220 | .lightable-material-dark.lightable-striped tbody tr:nth-child(even) {
221 | background-color: #FFFFFF12;
222 | }
223 |
224 | .lightable-material-dark.lightable-striped tbody td {
225 | border: 0;
226 | }
227 |
228 | .lightable-material-dark.lightable-striped thead tr:last-child th {
229 | border-bottom: 1px solid #FFFFFF12;
230 | }
231 |
232 | .lightable-paper {
233 | width: 100%;
234 | margin-bottom: 10px;
235 | color: #444;
236 | }
237 |
238 | .lightable-paper tfoot tr td {
239 | border: 0;
240 | }
241 |
242 | .lightable-paper tfoot tr:first-child td {
243 | border-top: 1px solid #00000020;
244 | }
245 |
246 | .lightable-paper thead tr:last-child th {
247 | color: #666;
248 | vertical-align: bottom;
249 | border-bottom: 1px solid #00000020;
250 | line-height: 1.15em;
251 | padding: 10px 5px;
252 | }
253 |
254 | .lightable-paper td {
255 | vertical-align: middle;
256 | border-bottom: 1px solid #00000010;
257 | line-height: 1.15em;
258 | padding: 7px 5px;
259 | }
260 |
261 | .lightable-paper.lightable-hover tbody tr:hover {
262 | background-color: #F9EEC1;
263 | }
264 |
265 | .lightable-paper.lightable-striped tbody tr:nth-child(even) {
266 | background-color: #00000008;
267 | }
268 |
269 | .lightable-paper.lightable-striped tbody td {
270 | border: 0;
271 | }
272 |
273 |
--------------------------------------------------------------------------------
/lectures/00-DID/libs/remark-css/default.css:
--------------------------------------------------------------------------------
1 | a, a > code {
2 | color: rgb(249, 38, 114);
3 | text-decoration: none;
4 | }
5 | .footnote {
6 | position: absolute;
7 | bottom: 3em;
8 | padding-right: 4em;
9 | font-size: 90%;
10 | }
11 | .remark-code-line-highlighted { background-color: #ffff88; }
12 |
13 | .inverse {
14 | background-color: #272822;
15 | color: #d6d6d6;
16 | text-shadow: 0 0 20px #333;
17 | }
18 | .inverse h1, .inverse h2, .inverse h3 {
19 | color: #f3f3f3;
20 | }
21 | /* Two-column layout */
22 | .left-column {
23 | color: #777;
24 | width: 20%;
25 | height: 92%;
26 | float: left;
27 | }
28 | .left-column h2:last-of-type, .left-column h3:last-child {
29 | color: #000;
30 | }
31 | .right-column {
32 | width: 75%;
33 | float: right;
34 | padding-top: 1em;
35 | }
36 | .pull-left {
37 | float: left;
38 | width: 47%;
39 | }
40 | .pull-right {
41 | float: right;
42 | width: 47%;
43 | }
44 | .pull-right + * {
45 | clear: both;
46 | }
47 | img, video, iframe {
48 | max-width: 100%;
49 | }
50 | blockquote {
51 | border-left: solid 5px lightgray;
52 | padding-left: 1em;
53 | }
54 | .remark-slide table {
55 | margin: auto;
56 | border-top: 1px solid #666;
57 | border-bottom: 1px solid #666;
58 | }
59 | .remark-slide table thead th { border-bottom: 1px solid #ddd; }
60 | th, td { padding: 5px; }
61 | .remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) { background: #eee }
62 |
63 | @page { margin: 0; }
64 | @media print {
65 | .remark-slide-scaler {
66 | width: 100% !important;
67 | height: 100% !important;
68 | transform: scale(1) !important;
69 | top: 0 !important;
70 | left: 0 !important;
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/lectures/01-recap/libs/header-attrs/header-attrs.js:
--------------------------------------------------------------------------------
1 | // Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2 | // be compatible with the behavior of Pandoc < 2.8).
3 | document.addEventListener('DOMContentLoaded', function(e) {
4 | var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
5 | var i, h, a;
6 | for (i = 0; i < hs.length; i++) {
7 | h = hs[i];
8 | if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
9 | a = h.attributes;
10 | while (a.length > 0) h.removeAttribute(a[0].name);
11 | }
12 | });
13 |
--------------------------------------------------------------------------------
/lectures/01-recap/libs/remark-css/default.css:
--------------------------------------------------------------------------------
1 | a, a > code {
2 | color: rgb(249, 38, 114);
3 | text-decoration: none;
4 | }
5 | .footnote {
6 | position: absolute;
7 | bottom: 3em;
8 | padding-right: 4em;
9 | font-size: 90%;
10 | }
11 | .remark-code-line-highlighted { background-color: #ffff88; }
12 |
13 | .inverse {
14 | background-color: #272822;
15 | color: #d6d6d6;
16 | text-shadow: 0 0 20px #333;
17 | }
18 | .inverse h1, .inverse h2, .inverse h3 {
19 | color: #f3f3f3;
20 | }
21 | /* Two-column layout */
22 | .left-column {
23 | color: #777;
24 | width: 20%;
25 | height: 92%;
26 | float: left;
27 | }
28 | .left-column h2:last-of-type, .left-column h3:last-child {
29 | color: #000;
30 | }
31 | .right-column {
32 | width: 75%;
33 | float: right;
34 | padding-top: 1em;
35 | }
36 | .pull-left {
37 | float: left;
38 | width: 47%;
39 | }
40 | .pull-right {
41 | float: right;
42 | width: 47%;
43 | }
44 | .pull-right + * {
45 | clear: both;
46 | }
47 | img, video, iframe {
48 | max-width: 100%;
49 | }
50 | blockquote {
51 | border-left: solid 5px lightgray;
52 | padding-left: 1em;
53 | }
54 | .remark-slide table {
55 | margin: auto;
56 | border-top: 1px solid #666;
57 | border-bottom: 1px solid #666;
58 | }
59 | .remark-slide table thead th { border-bottom: 1px solid #ddd; }
60 | th, td { padding: 5px; }
61 | .remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) { background: #eee }
62 |
63 | @page { margin: 0; }
64 | @media print {
65 | .remark-slide-scaler {
66 | width: 100% !important;
67 | height: 100% !important;
68 | transform: scale(1) !important;
69 | top: 0 !important;
70 | left: 0 !important;
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/lectures/01-recap/recap1_files/figure-html/simulation scatter-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/lectures/01-recap/recap1_files/figure-html/simulation scatter-1.png
--------------------------------------------------------------------------------
/lectures/01-recap/recap1_files/figure-html/simulation scatter2-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/lectures/01-recap/recap1_files/figure-html/simulation scatter2-1.png
--------------------------------------------------------------------------------
/lectures/02-recap/libs/header-attrs/header-attrs.js:
--------------------------------------------------------------------------------
1 | // Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2 | // be compatible with the behavior of Pandoc < 2.8).
3 | document.addEventListener('DOMContentLoaded', function(e) {
4 | var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
5 | var i, h, a;
6 | for (i = 0; i < hs.length; i++) {
7 | h = hs[i];
8 | if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
9 | a = h.attributes;
10 | while (a.length > 0) h.removeAttribute(a[0].name);
11 | }
12 | });
13 |
--------------------------------------------------------------------------------
/lectures/02-recap/libs/remark-css/default.css:
--------------------------------------------------------------------------------
1 | a, a > code {
2 | color: rgb(249, 38, 114);
3 | text-decoration: none;
4 | }
5 | .footnote {
6 | position: absolute;
7 | bottom: 3em;
8 | padding-right: 4em;
9 | font-size: 90%;
10 | }
11 | .remark-code-line-highlighted { background-color: #ffff88; }
12 |
13 | .inverse {
14 | background-color: #272822;
15 | color: #d6d6d6;
16 | text-shadow: 0 0 20px #333;
17 | }
18 | .inverse h1, .inverse h2, .inverse h3 {
19 | color: #f3f3f3;
20 | }
21 | /* Two-column layout */
22 | .left-column {
23 | color: #777;
24 | width: 20%;
25 | height: 92%;
26 | float: left;
27 | }
28 | .left-column h2:last-of-type, .left-column h3:last-child {
29 | color: #000;
30 | }
31 | .right-column {
32 | width: 75%;
33 | float: right;
34 | padding-top: 1em;
35 | }
36 | .pull-left {
37 | float: left;
38 | width: 47%;
39 | }
40 | .pull-right {
41 | float: right;
42 | width: 47%;
43 | }
44 | .pull-right + * {
45 | clear: both;
46 | }
47 | img, video, iframe {
48 | max-width: 100%;
49 | }
50 | blockquote {
51 | border-left: solid 5px lightgray;
52 | padding-left: 1em;
53 | }
54 | .remark-slide table {
55 | margin: auto;
56 | border-top: 1px solid #666;
57 | border-bottom: 1px solid #666;
58 | }
59 | .remark-slide table thead th { border-bottom: 1px solid #ddd; }
60 | th, td { padding: 5px; }
61 | .remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) { background: #eee }
62 |
63 | @page { margin: 0; }
64 | @media print {
65 | .remark-slide-scaler {
66 | width: 100% !important;
67 | height: 100% !important;
68 | transform: scale(1) !important;
69 | top: 0 !important;
70 | left: 0 !important;
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/lectures/02-recap/star1-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/lectures/02-recap/star1-1.png
--------------------------------------------------------------------------------
/lectures/03-datatable/03-datatable_files/figure-html/storms_ggplot-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ScPoEcon/Advanced-Metrics-slides/bd60aa1d166529b4b52867910fbd281292f132c3/lectures/03-datatable/03-datatable_files/figure-html/storms_ggplot-1.png
--------------------------------------------------------------------------------
/lectures/03-datatable/libs/cols.css:
--------------------------------------------------------------------------------
1 |
2 | /* Required: Clear floats after the columns */
3 | .multicolrow:after {
4 | content: "";
5 | display: table;
6 | clear: both;
7 | }
8 |
9 | /*Optional: Color header boxes*/
10 | .multicolhead {
11 | background-color:#4B9CD3;
12 | color: #FFFFFF;
13 | }
14 |
15 | .wordwrap {
16 | white-space: pre-wrap; /* CSS3 */
17 | white-space: -moz-pre-wrap; /* Firefox */
18 | white-space: -o-pre-wrap; /* Opera 7 */
19 | word-wrap: break-word; /* IE */
20 | }
--------------------------------------------------------------------------------
/lectures/03-datatable/libs/cols_macro.js:
--------------------------------------------------------------------------------
1 | // creates equal-width column headers with css class multicolhead for styling
2 | // ...titles is a comma-separated list a values to determine number and contents of columns
3 |
4 | remark.macros.col_header = function (...titles) {
5 |
6 | var num_items = titles.length;
7 | var width = Math.floor(100/num_items) - 2*0.5;
8 |
9 | var code =
10 | '