Fall 2019 Lab Notes

A collection of R lab notes, designed for beginner R users to help you learn how to do your own econometric analyses. Designed for Lucianna Etcheverry's Fall 2019 Class

View the Project on GitHub CMLennon/421-lab-notes-fall19

421-Lab-Notes

Here is where you can see the lab notes for Luciana Etcheverry’s Econometrics (EC421) for Fall 2019. We’ll periodically update these after class on Tuesdays, and I will generally try to make these serve as a complement rather than a substitute for lab.

For those having difficulty finding their filepath:

Mac: control+click on the file, hold down alt, and then select copy as filepath. That object should be able to go straight into an R read_csv() function. Make sure it’s surrounded by either ‘ ‘ or “ “

Windows: hold shift, right click, copy filepath. Paste this into read_csv(). Flip the direction of the slashes.

Some Useful Resources:

Getting Started With R

Tidyr cheatsheet

ggplot2 cheatsheet

Lab Notes

Homework 1

Lab 1: Learning R: Introduction link 1 Alternatively, link 2

Lab 1.5: Learning R: Enter the Tidyverse Alternatively, link 2

In Lab Activity 1: Getting started for Problem set 1

Homework 2

In Lab Activity 2: Having fun with ggplot

In Lab Activity 3: Problem set 2 Help

In Lab Activity 4: For loops, functions and time series

Mid-term Thursday, Oct 30th in class.

Homework 3

In-Lab Activity 5 Running Regressions with Time Series

In-Lab Activity 6 Problem Set 3 Help

Homework 4

In-Lab Activity 7 Soft Introduction to IV

Homework Helper, Problem Set 4 The help site

If you’re adventurous, Grant McDermott’s data science for economists is an amazing resource. It’s designed for PhD students, but not those with any experience with computers. If metrics is your calling, you might enjoy looking at these.

Grant’s Notes