We propose a smoothed least squares estimator of the parameters of a threshold regression model. Our model generalizes that considered in Hansen (2000) to allow the thresholding to depend on a linear index of observed regressors, thus allowing discrete variables to enter. We also do not assume...