Jeff Racine and Rob Hyndman, "Using R to Teach Econometrics", Journal of Applied Econometrics, Vol. 17, No. 2, 2002, pp. 149-174.