Abstract:
[KSI_TT,PARAM,P]=MRS2IR_EST(DATA,MODEL) returns smoothed inferences KSI_TT, estimated parameters PARAM and transition matrix P of a Markov regime-switching (MRS) model with 2 independent regimes: (i) an AR(1) process in the base regime X(t+1)=phi_1*X(t)+c_1+sigma_1*|X(t)|^g_1*N(0,1), (ii) and a Gaussian (MODEL='G'), shifted-lognormal ('LN'), shifted-Pareto ('P'), Weibull ('W') or exponential ('E') distributed spike regime, fitted to time series DATA. The first column (KSI_TT) or row (PARAM, P) contains results for the base regime and the second column/row for the spike regime.