Quantcast
Channel: Kevin Goulding – the Tarzan
Browsing all 10 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

TikZ diagrams for economists: A normal pdf with shaded area.

I have been dabbling with the TikZ package to create some diagrams relevant to a first year microeconomics course. The following diagram of the probability density function (pdf) of a normal...

View Article


TikZ for economists: A how-to guide with examples

Below is a guide I created to assist economists in quickly creating economics diagrams using the package TikZ in LaTeX. Thoughts, comments, ideas? Let me know; I’m always appreciative of feedback....

View Article

Image may be NSFW.
Clik here to view.

Differences-in-Differences estimation in R and Stata

{ a.k.a. Difference-in-Difference, Difference-in-Differences,DD, DID, D-I-D. } DID estimation uses four data points to deduce the impact of a policy change or some other shock (a.k.a. treatment) on the...

View Article

Image may be NSFW.
Clik here to view.

TikZ diagrams with R: tikzDevice

There are several options for integrating your R workspace with LaTeX. One of these is the R package tikzDevice that allows you to export images created in R as tikz code in a .tex file, for immediate...

View Article

Image may be NSFW.
Clik here to view.

TikZ diagrams with R: A Normal probability distribution function

You may have seen an earlier post where I went through some examples of how to create a normal distribution in LaTeX using TikZ. In this post, I will show a different way to accomplish a similar result...

View Article


Image may be NSFW.
Clik here to view.

TikZ diagrams with R: loops with tikzDevice

Recently I needed to create a lot of similar charts for input into a LaTeX document.  In this post, I will show how I integrated the R package tikzDevice with usepackage{tikz} and a simple R loop to...

View Article

R: apply() + function = no need for loops

In my research, I am constantly running the same computation over every combination of month-day-year-hour in a given sample’s time period. Traditionally, this can be done using loops, like so: R: k =...

View Article

Image may be NSFW.
Clik here to view.

Why use R? A grad student’s 2 cents

One of the problems I faced this past year was deciding which software package to use — for statistical analyses, homework problems, and my thesis research. A handful of professors here use SAS, many...

View Article


Image may be NSFW.
Clik here to view.

Parallel computing with package ‘snowfall’

Lately I have been looking for ways to decrease the amount of time it takes me to run multiple regressions over a very large data set. There are several options that I am investigating to do this, and...

View Article


Image may be NSFW.
Clik here to view.

Calculate an OLS regression using matrices in Python using Numpy

The following code will attempt to replicate the results of the numpy.linalg.lstsq() function in Numpy. For this exercise, we will be using a cross sectional data set provided by me in .csv format...

View Article
Browsing all 10 articles
Browse latest View live