Publications by Jenni Putz
Document
Introduction Here you can find lab notes and resources for Econ 415. These will be updated after our in-class lab sessions. These notes are not a substitute for attending lab but serve as an additional resource. Much of the lab content will be drawn from R for Data Science Useful R Resources Getting Started with R – A collection of resources for...
5393 sym 4 img
Econ 401/511 Notes
Introduction Here you can find lab notes and resources for Econ 401/511 Fall 2024. These will be updated after our in-class lab sessions. These notes are not a substitute for attending lab but serve as an additional resource. Much of the lab content will be drawn from R for Data Science Useful R Resources Getting Started with R – A collection of...
3915 sym R (75 sym/3 pcs) 6 img
Econ 415, Winter 2024 Lab Notes
Introduction Here you can find lab notes and resources for Econ 415. These will be updated after our in-class lab sessions. These notes are not a substitute for attending lab but serve as an additional resource. Much of the lab content will be drawn from R for Data Science Useful R Resources Getting Started with R – A collection of resources ...
969 sym
Econ 455W/555: Monte Carlo Simulation Example
Setup # Load required packages # Load required packages library(magrittr) # for data manipulation library(ggplot2) # for data visualization # Define input parameters num_users <- rnorm(1000, mean = 5000, sd = 1000) revenue_per_user <- runif(1000, min = 0, max = 5000) operating_costs <- rnorm(1000, mean = 10000, sd = 200) development_cost <- 200000...
113 sym R (2156 sym/8 pcs) 1 img
EC421_W20_PS4help
Setup library(pacman) p_load(tidyverse, lmtest) df <- read_csv("/Users/jenniputz/Downloads/004-data.csv") ## Parsed with column specification: ## cols( ## t = col_double(), ## date = col_date(format = ""), ## year = col_double(), ## month = col_double(), ## price_electricity = col_double(), ## price_coal = col_double(), ## price_ga...
601 sym R (4383 sym/10 pcs)
EC421_W20_lab6
Setup For this lab, we will be using the tidyverse and the lmtest packages. We need the lmtest package to do a Wald Test. We will be using the data for Problem Set 3. library(pacman) p_load(tidyverse, lmtest) df <- read_csv("/Users/jenniputz/Downloads/003-data.csv") ## Parsed with column specification: ## cols( ## t = col_double(), ## date =...
5715 sym R (7238 sym/28 pcs) 4 img
EC421_W20_lab5
Setup We will be using the pacman package to load the tidyverse and ggthemes (if you want pretty themes on your graphs). library(pacman) p_load(tidyverse, ggthemes) Functions Before we talk about how to write a function in R, let’s think about what functions are in general. Think back to when you first learned about functions in math - somethi...
6413 sym R (6118 sym/21 pcs) 6 img
EC421_W20_lab3
Setup library(pacman) p_load(tidyverse, lfe, robustbase, ggthemes) df <- education %>% rename(residents = X1, per_capita_income = X2, young_residents = X3, per_capita_exp = Y, state = State) Looking for heteroskedasticity graphically We can make a plot to examine the relationship between our x variable and...
5657 sym R (4436 sym/31 pcs) 1 img
EC421_W20_lab2
Setup First, let’s load our packages. We wil mostly be using the dplyr and ggplot2 packages and those will load as part of the tidyverse. The ggthemes package contains themes that we can add to our ggplots. The ggridges package will be used to create a pretty cool graph towards the end. library(pacman) p_load(tidyverse, lubridate, ggridges, ggt...
5510 sym R (9923 sym/44 pcs) 15 img