dynamic stability regression script