Likelihood Inference in a Class of Nonregular Econometric Models