I have a problem which I haven't seen around this forum as of yet, if any of you does know a thread containing a solution or discussion please let me know!
Anyways, my problem is as follows: I'm doing my master thesis with this company which wants to evaluate it's business units on an individual level (over 100 Business Units) based on costs, revenues and other variables. I have 8 variable groups now (each containing daily series since 01/01/2010 for each business unit). The problem is that certain business units do not posess certain activities and that as such the groups are not equal (some groups 'only' have 70 series instead of more than 100).
My programming knowledge is not very extensive, but I managed to write a bit of code which should go part of the way.
Code: Select all
matrix(6,132) coefs
matrix(6,132) tstats
vector(132) r2s
matrix(2,132) archtest
!rowcounter=1
equation eq
for !i=1 to alfa.@count
for !j=1 to beta.@count
for !k=1 to gamma.@count
for !l=1 to delta.@count
for !m=1 to epsilon.@count
for !n=1 to zeta.@count
for !o=1 to eta.@count
for !p=1 to theta.@count
%iname=alfa.@seriesname(!i)
%jname=beta.@seriesname(!j)
%kname=gamma.@seriesname(!k)
%lname=delta.@seriesname(!l)
%mname=epsilon.@seriesname(!m)
%nname=zeta.@seriesname(!n)
%oname=eta.@seriesname(!o)
%pname=theta.@seriesname(!p)
equation eq_{%iname}.ls(n) {%iname} c {%jname} {%kname} {%lname} {%mname} {%nname} {%oname} {%pname}
colplace(coefs, eq_{%iname}.@coefs, !i)
colplace(tstats, eq_{%iname}.@tstats, !i)
r2s(!rowcounter) = eq_{%iname}.@r2
eq_{%iname}.makeresids Res%iname
freeze(archtable) eq_{%iname}.archtest(7) 'LM-ARCH Test on past 7 days
archtest(!rowcounter, 1)=@val(archtable(3,2))
archtest(!rowcounter, 2)=@val(archtable(3,4))
d archtable
!rowcounter=!rowcounter+1
next
next
next
next
next
next
next
next
I'd really appreciate the help! And I'm using EViews 7 for this issue
Regards,
Dreeken
PS. I thought I'd might simply use empty series to equalize the groups (Filled with NA) only EViews will probably exclude every single observation due to this method, right?
