I have written the following program in Eviews7:
Code: Select all
!rows = @rows(z_dsf_standard)
vector (!rows) z_HJ_sd
for !i=1 to 3
vector (2) z_r_!i
z_r_!i (1) = z_afkast (!i,1) ' Her fanger jeg ite periodes aktieafkast
z_r_!i (2) = z_afkast (!i,2) ' rf
z_hj_sd (!i) = (z_dsf_standard (!i))^2 - (@inverse(@transpose(z_r_!i)*z_r_!i)*(@transpose(z_r_!i)*(z_dsf_standard (!i)) ))*z_r_!i
next
As you can see z_r_!i is a 2x1 vector and z_dsf_standard is a 130x1 vector but I have picked out the i'th entry of this vector....
Thanks,
Lasse
