smooth_coef function

Smooth coefficients in the model