SMS dit: Dynamic regression: theory and algorithms