Reuters reporting on Moody’s Analytics
election model

Moody’s model is based on a combination of state-level economic conditions and political history
And, for the "but":