Hello, I am trying to estimate neutral interest rate using two equations: IS and phillips curve.

Unfortunately, there seems to be a problem with mode maximization.
The error message states that hessian in mode is not positive definite.

Some information about the model:
I am using exogenous time series for output gap, annualized GDP trend growth rate, yoy core inflation and real fed rate. Data has no linear trends. Data does not contain Covid time periods. Neutral interest rate is supposed to be extracted from IS equation and is connected to GDP trend growth. usa_wob.mod (1.2 KB) data.xlsx (18.4 KB)

If someone have any advice on this it will be extremely appreciated.

Thank you, professor. I should’ve read this paper before asking question.
As I understood, there are two ways to work with non-zero-mean data.

Demean it with different filters and then pass them to equations as deviations from SS;

Pass data to observation equation as a sum of intercept which represent steady-state value and deviation from it and then estimate or filter them both.

I feel that second approach is closer to inclusion of intercepts into transition equations. I tried to include intercepts (mode file attached) and this did not work with modeoptim 4 and 5. I also tried to demean data with same result. usa_wob.mod (1.3 KB)