Fabiani-Mestre 2004 Replication
The attached zip has a replication for Fabiani & Mestre(2004), "A system approach for measuring the euro area NAIRU," Empirical Economics, vol. 29, no. 2, pages 311-341. This is a fairly complicated three variable state space model with mixed stationary and non-stationary states.
The "baseline" program is more complicated than it needs to be because it includes code to reproduce the results in the paper. Those turn out to find a local mode, rather than the global one. In the paper, the authors also use what amounts to being a diffuse prior on all states, even though some are stationary. This turns out to have a surprisingly long-legged effect on the filtered states.
The state matrices are fairly large and I don't attempt to describe them in the comments. If you want to follow this, you'll almost certainly need to be looking at the paper while you're reading the program.
The "baseline" program is more complicated than it needs to be because it includes code to reproduce the results in the paper. Those turn out to find a local mode, rather than the global one. In the paper, the authors also use what amounts to being a diffuse prior on all states, even though some are stationary. This turns out to have a surprisingly long-legged effect on the filtered states.
The state matrices are fairly large and I don't attempt to describe them in the comments. If you want to follow this, you'll almost certainly need to be looking at the paper while you're reading the program.