I have 12 regressions with 3 different dependent variables, where the independent variables change. So it is a 3x4 system. For example, I want to obtain for regression i1 the following: scalar1= 1st coef. then scalar2 = scalar1 + 2 coef; scalar3 = scalar2 + 3rd coef and so on.
this is how far i got. i think it is just a minor mistake in there. Would be nice if anybody could help me.
Code: Select all
matrix (70,70) lags_spec
for %dpv c i y 'for dep var eq
for !eqnr= 1 to 4 'for equation number
for !h= 1 to 8 'for the lag
scalar effect_{%dpv}{!eqnr}{!h} = 0
effect_{%dpv}{!eqnr}{!h} = effect_{%dpv}{!eqnr}{(!h-1)} + {%dpv}{!eqnr}.@coef(!h) 'i think i doesn't want to have the -1 in effect_{%dpv}{!eqnr}{!h-1}
lags_spec({((!eqnr)+(!h))},1) = effect_c{!eqnr}{!h} 'this is the matrix where i would like to put the results into
next
next
next
Thanks
Best
YK
