run_dynamic_regression function

Run the dynamic regression model