loglin.smooth function

Pre-smoothing using log-linear models.