On asymptotic inferences in non-parametric and semiparametric models with discrete and mixed regressors