Essays on econometrics and planning