compute p(1,1)=%(z=exp(%dot(%eqnxvector(p1eq,time),v1)),z/(1+z))
compute p(1,2)=%(z=exp(%dot(%eqnxvector(p2eq,time),v2)),1/(1+z))superper2008 wrote:Hello Tom:
I may make one mistake. The markov regime switching model should be one non-linear regression with two independent variables including X and Y. Could you please give me more suggestions how to code them by using coeffients estimated from time varying transition probability>
Thank you very much for your understanding.
Sincerely,
Feiyu
superper2008 wrote:Hello Tom:
I don't need to estimate the linear regression with fixed transitions first.
superper2008 wrote:Hello Tom:
Appreciate you very much for your suggestion about markov simple linear regression. Could you please give me one example about markov multivariate linear regression by using @mssysregression? Because in my model, I will estimate several coeffiicents of intercepts, betas and gammas with state-dependent variance.
superper2008 wrote:Besides, when I am using Filardo's code to estimate the time varying probability transition modelling, it is a little difficult to write the code about P(1,1) and P (1,2) because Filardo uses logistic function,[p(1,1)=%(z=exp(%dot(%eqnxvector(p1eq,time),v1)),z/(1+z)),p(1,2)=%(z=exp(%dot(%eqnxvector(p2eq,time),v2)),1/(1+z))], but I will use cumulative normal function P=f(c1+c2(log(X,t-1))), q=f(d1+d2(log(x,t-1))), could you please help me to code the normal function?
equation p1eq *
# constant logx{1}
equation p2eq *
# constant logx{1}superper2008 wrote:Hello Tom:
Appreciate you very much for your kindly help. I will apply the code into my model. Now, the current version of Winrats I am using is 8.0 pro. Could I have to update to rats 8.1 to execute @msysregression and @msvarsteup function?
Thanks again,
Best regards,
Feiyu
Return to Structural Breaks and Switching Models
Users browsing this forum: No registered users and 2 guests