Page 1 of 1
math functions for coef
Posted: Tue Dec 02, 2008 4:03 am
by maxchen
It seems that math functions do NOT support coefficient vector. For example
Code: Select all
wfcreate u 4
coef(3) c1 = 1
coef(3) c2 = 2
c2 = exp(c1) 'error
Re: math functions for coef
Posted: Tue Dec 02, 2008 8:25 am
by EViews Gareth
coefficient vectors aren't really intended to be used for calculations etc..., so yes, math functions will not work upon them.
Re: math functions for coef
Posted: Tue Dec 02, 2008 1:27 pm
by EViews Glenn
But it's easy enough to get your
coef into a
vector object with which you can use functions:
Code: Select all
coef(2) c1
c1.fill 1, 2
vector c2 = c1
vector c3 = exp(c2)
Re: math functions for coef
Posted: Tue Dec 02, 2008 4:10 pm
by maxchen
thanks
yeah, by coef -> vector ->coef, for I use coef in LogL. Once the estimation of Logl is succeeded, I use another Logl where the parameter transformation inside Logl is remove, and I transform the result as the starting value to estimate the new Logl.