CoupCast finds that economic misery is linked to higher coup risk, as is extreme weather. But political factors matter more.
Dictators tend to lose popularity when they stay in office for too long. Autocrats who cling to power after losing elections are particularly likely to be deposed.