dmbates / CopenhagenEcon

Files for a short course at U. of Copenhagen Econ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CopenhagenEcon

Files for a short course at the Department of Economics of the U. of Copenhagen. These notebooks are stored as Julia markdown files. They can be converted to Jupyter notebooks using the Weave package for Julia.

First download and install Julia. For the most part access to the data sets and creation of graphics is done with R so you should have R installed. In Julia there are several packages to install

using Pkg; Pkg.add("Weave", "IJulia", "RCall", "MixedModels")

There are others but these get you started. Adding a package is similar to calling install.packages in R. This is the stage at which the code for the package is downloaded and prepared for use.

It is probably easiest to use these notebooks in Jupyter. For that they need to be converted from .jmd to .ipynb format. A sample call to do this is

using Weave   # similar to a call to library in R or import in Python - loads a package in the current session

convert_doc("01-Packages.jmd", "01-Packages.ipynb")

If you already have jupyter or jupyter lab installed just start it and open the .ipynb files. If not, you may be able to start jupyter with

using IJulia

notebook()

About

Files for a short course at U. of Copenhagen Econ