Skip to content

Instantly share code, notes, and snippets.

View nilshg's full-sized avatar

Nils Gudat nilshg

View GitHub Profile
@nilshg
nilshg / CovidPluto.jl
Created June 30, 2021 17:47
UK Covid data
### A Pluto.jl notebook ###
# v0.15.0
using Markdown
using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local el = $(esc(element))
using CSV, DataFrames, Econometrics, GLM, Statistics, TableView
# Read in the data - unbalanced panel
# Data from https://rdrr.io/cran/panelvar/man/abdata.html
df = CSV.read("abdata.csv", copycols = true)
# We start by estimating standard OLS on our data, running the model
#
# yᵢₜ = α₁Lyᵢₜ + α₂L²yᵢₜ + β₁wᵢₜ + β₂Lwᵢₜ + β₃kᵢₜ + β₄Lkᵢₜ + β₅L²kᵢₜ + β₆ysᵢₜ + β₇Lysᵢₜ + β₈L²ysᵢₜ
# + ∑yearₜ
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nilshg
nilshg / Deloitte
Created July 1, 2015 13:29
Interview prep
{"nbformat_minor": 0, "cells": [{"source": "<h2>Deloitte Interview</h2>\n<a id=\"top\"></a>\n\n1. [Why Deloitte?](#deloitte) (What do they do?)\n2. [Why this job?](#job) (Senior Associate profile)\n3. [Why you?](#personal) (Personal questions)\n4. Statistical techniques for competition consulting (Compass Lexecon)\n5. Issues in NHS consulting (Deloitte briefings + my work)", "cell_type": "markdown", "metadata": {}}, {"source": "<a id=\"deloitte\"></a>\n<h3>Why Deloitte?</h3>\n\nMy reasons for choosing Deloitte:\n\n1. Personal references - friends who have conveyed positive experiences both from Germany and the London office\n2. Size - allows for larger variety in client projects, potentially better long-term fit as one can carve out niche within the business\n3. Fit - econ consulting team seems very engaged in NHS projects and public sector work, which is interesting to me personally\n4. Related: compared to other jobs (Economist at Compass Lexecon, Associate at CRA, Economist at Monitor, Research Officer at
@nilshg
nilshg / solvingRetirement
Last active August 29, 2015 14:20
solve retirement problem again, with consfunc for transition period
{
"metadata": {
"language": "Julia",
"name": "",
"signature": "sha256:156587c587337dda2eac7912dd846d58c0aa02764fd8bf9ddd7a93f446c7f9b2"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
@nilshg
nilshg / Interpolations
Created February 23, 2015 12:02
Interpolations with ApproXD
{
"metadata": {
"language": "Julia",
"name": "",
"signature": "sha256:72749815101a8e48afe15148e89ea7bf00eef3dd786617ebbd020df14c76092c"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
@nilshg
nilshg / Retirement
Last active August 29, 2015 14:13
Solve the retirement problem
{
"metadata": {
"language": "Julia",
"name": "",
"signature": "sha256:fd811a719139b23bb979a008002d8f852ad788ac7aa02f2dad79de950621e624"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
@nilshg
nilshg / 2-periods.ipynb
Last active September 27, 2015 18:39
Solving 2 period problems
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nilshg
nilshg / solving_guvenen.ipynb
Last active September 27, 2015 18:40
Solves Guvenen (2007) with numerical strategy of Guvenen/Smith (2014)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nilshg
nilshg / bhps2005
Last active August 29, 2015 14:07
BHPS 2005
{
"metadata": {
"name": "",
"signature": "sha256:a98765f20861b94ac778fde457603bc725c863b3acd5b1ed3eab221aeefbefdf"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [