Nonparametric Regression and Generalized Linear Models