Essays in econometrics and time-series analysis