dear all:
there are something wrong with my bayes.mod,and i don’t know how to solve it.anybody else can help me please?thanks a lot!
codes list as follows:

错误使用 dseries/extract (第 91 行)
dseries::extract: Variable y is not a member of o!

出错 dseries/subsref (第 245 行)
r = extract(o,S(1).subs{:});

really appreciate your support,dear professor!
It really works but mode_check shows that Log data density [Laplace approximation] is NaN.I have seen related reply during the forum but still don’t understand.how could i do next?thanks a lot!! bayes.mod (7.1 KB) HP.xlsx (12.0 KB)

I have processed the data.the procedure is:1.transform into real variable;2.Logarithmic;3.X13 seasonal adjustment;4.hp filter process.how to sovle the tranding problem?do you mean is there something wrong with data or codes?thank you very much!

dear professor,I have solved the data problem of trend but it still doesn’t work.how can i do next?I’m really puzzled. bayes.mod (7.1 KB) hpdetrend.xlsx (12.3 KB)