### Fill in a vector with a large number of scalars

Posted:

**Wed Jan 30, 2019 3:20 pm****I would like to save and store one coefficient of the equation below in a vector(200) in order to generate a graph.**

I generate n numbers of scalars, which I then try to put together in a vector. However, the last part of the code is not working properly. It gives me a constant, namely the last estimated value in the routine.

I generate n numbers of scalars, which I then try to put together in a vector. However, the last part of the code is not working properly. It gives me a constant, namely the last estimated value in the routine.

!n = 200

for !i =0 to !n

smpl 1995:01+!i 2018;12-!n+!i

equation fg!i.ls(n) d(EURIBOR3M) c d(GDP)

scalar coef_gdp!i = fg!i.@coefs(2)

next

vector(!n) coefgdp

for !i =0 to !n

coefgdp = coef_gdp!i

next