Publications by Jonathan Riis

ps3

19.03.2021

# Libraries library(tidyverse) ## ── Attaching packages ────────────────────────────────── tidyverse 1.3.0 ── ## ✓ ggplot2 3.3.3 ✓ purrr 0.3.3 ## ✓ tibble 3.0.3 ✓ dplyr 1.0.2 ## ✓ tidyr 1.1.2 ✓ stringr 1.4.0 ## ✓ readr 1.3.1 ✓ forc...

11305 sym R (29278 sym/78 pcs) 2 img

problem set 3 - econometrics II

12.03.2021

# Libraries library(tidyverse) ## ── Attaching packages ────────────────────────────────── tidyverse 1.3.0 ── ## ✓ ggplot2 3.2.1 ✓ purrr 0.3.3 ## ✓ tibble 3.0.3 ✓ dplyr 1.0.2 ## ✓ tidyr 1.1.2 ✓ stringr 1.4.0 ## ✓ readr 1.3.1 ✓ forc...

10405 sym R (29241 sym/75 pcs) 2 img

ps4 - econometrics II

09.04.2021

Problem 1 \[ Y_{i,t} = T_{i,t} \beta + \alpha_i + \delta_t + \varepsilon_{i,t} \] Taking the first difference: \[ \Delta Y_{i,t} = Y_{i,2} - Y_{i,1} \] \[ \Delta Y_{i} = Y_{i,2} - Y_{i,1} = (T_{i,2} \beta + \alpha_i + \delta_2 + \varepsilon_{i,2}) - (T_{i,1} \beta + \alpha_i + \delta_1 + \varepsilon_{i,1 }) \] Simplification: \[ \Delta Y_{i} = (T...

4237 sym R (9668 sym/32 pcs)

ps7

31.05.2021

Problem 1 library(tidyverse) ## ── Attaching packages ────────────────────────────────── tidyverse 1.3.0 ── ## ✓ ggplot2 3.3.3 ✓ purrr 0.3.3 ## ✓ tibble 3.0.3 ✓ dplyr 1.0.2 ## ✓ tidyr 1.1.2 ✓ stringr 1.4.0 ## ✓ readr 1.3.1 ✓ forcat...

2491 sym R (7528 sym/46 pcs)

ps8

31.05.2021

EXAM 2020 library(clubSandwich) ## Registered S3 method overwritten by 'clubSandwich': ## method from ## bread.mlm sandwich library(car) ## Loading required package: carData library(AER) ## Loading required package: lmtest ## Loading required package: zoo ## ## Attaching package: 'zoo' ## The following objects are masked from 'package...

5761 sym R (3890 sym/33 pcs)

ps6 - econometrics II

14.05.2021

Problem 1 require(foreign) ## Loading required package: foreign library(tidyverse) ## ── Attaching packages ────────────────────────────────── tidyverse 1.3.0 ── ## ✓ ggplot2 3.3.3 ✓ purrr 0.3.3 ## ✓ tibble 3.0.3 ✓ dplyr 1.0.2 ## ✓ tidyr 1.1.2 ...

5327 sym R (13092 sym/56 pcs)

econometrics II ps5

07.05.2021

Exercise Set 5: Instrumental Variable Problem 1 We want to estimate the effect of owning a PC on GPA. PC is a binary variable. 1. a corr(PC, u) will cause an endogeneity problem, which is a violation of OLS. Without controlling for variables that effects both the error term \(u\) and \(PC\) will bias our results. It is reasonable to suspect that...

7255 sym R (13714 sym/50 pcs)

drm - assignment 2

29.10.2021

Exercise 3 library(sde); library(dplyr) ## Loading required package: MASS ## Loading required package: stats4 ## Loading required package: fda ## Warning: package 'fda' was built under R version 3.6.2 ## Loading required package: splines ## Loading required package: Matrix ## Loading required package: fds ## Loading required package: rainbow ## L...

101 sym R (8675 sym/44 pcs) 8 img