Implementation for SJTU EC310 Econometrics.
Assume we've got Python 2.7.x and PIP. Also, Virtualenv and virtualenvwrapper are recommended.
Clone and install dependencies.
$ git clone https://github.com/arrowrowe/ec310.git && cd ec310
$ pip install -r requirements.txt
You may need this.
$ export PYTHONPATH=$PYTHONPATH:$(pwd)
Let's pick Lab01 as an example.
# Directly output the report.
$ python lab01/main.py
# Output to a file.
$ python lab01/main.py > lab01/lab01.log
# Interactively play with its result.
$ ipython
In [1]: run -n lab01/main.py
In [2]: lab = Lab01()