a question about @disaggregate

Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.
hardmann
Posts: 211
Joined: Sat Feb 26, 2011 9:49 pm

a question about @disaggregate

Unread post by hardmann »

Dear Tom:

I understand a instruction in model 2, 'Log linear model', in @disaggregate procudure as follows.

Code: Select all

frml cf     = lc=lcf,cv=%zeros(ndlm,1),%do(i,1,factor,%(cv(i)=mx(i)=lc(i)*exp(xstate0(t)(i)))),cv
Howerver, I do not know why do it as such way. It feels like forcing a few instructions into one instruction. Is a instruction mandatory and can it be expanded into multiple instruction.
Pls Tom explain it in detail.

Best Regard
Hardmann
TomDoan
Posts: 7702
Joined: Wed Nov 01, 2006 4:36 pm

Re: a question about @disaggregate

Unread post by TomDoan »

The only alternative would be to write a FUNCTION of T which returns a VECTOR and make FRML CF reference that. But it's a FRML which depends upon T, both because of the obvious (reference to XSTATE0(T)), but also because LCF itself is a FRML. The linearized state-space model is complicated.
Post Reply