This repo contains the Julia code for the revision of the paper "Computer adption and the changing labor market". The journal Review of Economic Dynamics (RED, hence the repo name) issued a "reject and resubmit" to the original paper here, and this repo contains the implementation of the suggestions that relate to data (the implementation of the suggestions for the economic model is currently in a private repo of a co-author).
In this repo:
RED.org
is a literate analysis document with discussion, code, and results all in one place. This document revises the data in the original paper with the suggestions from the referees. This project focusses on reproducible research by default.RED.pdf
is the PDF output from the Org-mode export ofRED.org
.src/
contains the Julia source code called byRED.org
and doc-tests for that code.data/
contains small data files for convenience and reproducibility.docs/
contains the setup for doc-testing the code (becauseDocumenter.jl
requires building the documentation for doc-testing).
To run the code in RED.org
, you need:
- Emacs, e.g. for MacOS you can run
brew install emacs --with-cocoa
- Org-mode, which now ships by default with Emacs
- Julia, "a fresh approach to technical computing"
ob-julia-doc
, a contributed language to Org babel to run Julia source code blocks in Org mode.
To compile the PDF, you need a LaTeX distribution. Then run C-c C-e lp
to compile the PDF from the Org document.
To run the doc-tests, you need Documenter.jl
(Pkg.add("Documenter")
), then run:
include("RED.jl");
include("docs/make.jl");
If you are concerned about security, you may prefer to first tangle the code with Org-babel and run it in a Julia REPL, instead of running all the code in Org mode.