A state‐dependent linear recurrent formula with application to time series with structural breaks