Essays in identification and estimation of duration models and varying coefficient models