A companion to theoretical econometrics