a question on @DISAGGREGATE
Posted: Sun Nov 01, 2020 12:26 am
Dear Tom:
I want to disaggreate and decompose the quarterly real GDP into monthly trend and cycle components. Therefore, I should deeply understand the detail of @DISAGGREGATE procedure. I begin with the log-linear the option, e.g. MODEL=LOGLIN , and without related series, e.g. n=%eqnsize(xvar) =0, factor=3. In such setting, I can focous on my problem. I do not understand the complicated usage of instruction FRML as follow
if model==2 {
...
if n>0 { ..... }
else {
frml cf = lc=lcf,cv=%zeros(ndlm,1),%do(i,1,factor,%(cv(i)=mx(i)=lc(i)*exp(xstate0(t)(i)))),cv
frml ydistf = exp(xstate0(t)(1))
}
frml yf = %if(.not.observed,%na, %(yadj=y+%dot(cf(t),xstate0(t)),%do(i,1,factor,yadj=yadj-mx(i)),yadj))
}
I learned about Chapter 7 "Interpolation and Distribution" of the state space 2ed e-course, and learned about the principle and application of the extended Kalman filter to linearize the log-linear constraints. I do not understan the first and third instrcution FRML.
Especial, I do not know the usage of equal signs in succession, such as " = lc=lcf " , " %(cv(i)=mx(i)=lc(i)*exp(xstate0(t)(i))) "" .
In addition to, usage of %()function and cv,mx.
Please Tom give the details of usage of these function and instruction.
Best Regard
Hardmann
I want to disaggreate and decompose the quarterly real GDP into monthly trend and cycle components. Therefore, I should deeply understand the detail of @DISAGGREGATE procedure. I begin with the log-linear the option, e.g. MODEL=LOGLIN , and without related series, e.g. n=%eqnsize(xvar) =0, factor=3. In such setting, I can focous on my problem. I do not understand the complicated usage of instruction FRML as follow
if model==2 {
...
if n>0 { ..... }
else {
frml cf = lc=lcf,cv=%zeros(ndlm,1),%do(i,1,factor,%(cv(i)=mx(i)=lc(i)*exp(xstate0(t)(i)))),cv
frml ydistf = exp(xstate0(t)(1))
}
frml yf = %if(.not.observed,%na, %(yadj=y+%dot(cf(t),xstate0(t)),%do(i,1,factor,yadj=yadj-mx(i)),yadj))
}
I learned about Chapter 7 "Interpolation and Distribution" of the state space 2ed e-course, and learned about the principle and application of the extended Kalman filter to linearize the log-linear constraints. I do not understan the first and third instrcution FRML.
Especial, I do not know the usage of equal signs in succession, such as " = lc=lcf " , " %(cv(i)=mx(i)=lc(i)*exp(xstate0(t)(i))) "" .
In addition to, usage of %()function and cv,mx.
Please Tom give the details of usage of these function and instruction.
Best Regard
Hardmann